This is a happy camper! I finally succeeded in copying a bitmap to another bitmap on a 24-bit screen while protecting parts of the destination bitmap with a mask. This is something I needed for my game Blackfang, which I am currently working on. It had brought progress on the game to a halt. I couldn't find a way to write to a single non-interleaved bitplane. I didn't ask because I didn't think anybody had tried it for a few decades. I finally found a way to create the mask by "brute force". Then I used BltMaskBitMapRastPort to do the copy. I plan to write a short article describing how to do it. And what not to do. I like to help people when I can. I need to get a deeper understanding of the process first. If anybody on the forum has actually done it, I'd like to learn more about it. I'm pretty sure there will be somebody to tell me how easy it is.
Sat, 2020-09-05 06:06#1
Copy bitmap with mask