grabpixmap and save with alpha

BlitzMax Forums/BlitzMax Programming/grabpixmap and save with alpha

The background isn't really black though, it's transparent. If you save the pixmap in the program above you'll see that there is no background.

I think I can tell what's happening though, the grabbed pixels alpha will only be a maximum of whatever you set setalpha to. Why this is though I'm not sure, it must be something to do with how glreadpixels is working, I'm hardly an expert on GL tho! Think I'll have to hunt on google a bit more.