Pixmap manipulation and code optimisation

BlitzMax Forums/BlitzMax Beginners Area/Pixmap manipulation and code optimisation

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.

Normally a pixmap has its own memory buffer to store pixels, attached to the header information that describes the width, height, pitch etc.

An alternative is that you have this header information pointing to some other pre-existing block of memory, that is associated with some other pixmap. So the two pixmap headers sort of share the same pixmap pixels. Then using that `window within a pixmap`, you can just deal with what is within that window, like a clipped window, and ignore what's outside of it.