Pixmaps and banks

BlitzMax Forums/BlitzMax Beginners Area/Pixmaps and banks

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I didn't say create static pixmap. I said create a static bank. A static bank is an empty bank which just `wraps around` an existing block of memory. So you can wrap it onto the PixmapPixelBuf() address in memory. It then doesn't have content of its own, it is sharing the content with the pixmap object. So you don't have to copy the data from the pixmap to the bank, they are basically one and the same - two object types looking at the same block of memory.

Use CreateStaticBank() and give it the address of your pixmap's buffer.

No, I did not mean to create a bank first and then do a static bank on top of it, that is pointless.