pixmap trouble...

BlitzMax Forums/BlitzMax Beginners Area/pixmap trouble...

Load your pixmap
Create a StaticPixmap or use PixmapWindow to `look at an area of that pixmap`

You now have a pixmap which contains only the area that you wanted. If you want to take that area and instead of it being shared memory with the whole original pixmap, put it into its own pixmap, then create a new pixmap the size of the area and use that pixmaps pixmap.paste() method. You don't have to go copying every single individual pixel yourself.

An alternative is to use ReadPixel() and WritePixel() in your loops.