Strip alpha from pixels above 0

BlitzMax Forums/BlitzMax Beginners Area/Strip alpha from pixels above 0

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 have a PNG loaded into a pixmap, I need to loop through it and change any pixels that are not totally transparent to being solid.

Everything I try seems to crash, I think somehow readpixel or writepixel is getting out of the application memory and windows is... less than happy about that...

Though it seems to work when I do it once, but then when I do it a second time to a different pixmap, or even the same one, it crashes...

Does anyone have a sample they can share?