grabpixmap and save with alpha

BlitzMax Forums/BlitzMax Programming/grabpixmap and save with alpha

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.

See this for a working OpenGL example. To make this work with DX7, you'll need to alter brl.d3d7max2d (search for GrabPixmap):

change
pixmap=TPixmap.Create( width,height,PF_BGR888 )

to
pixmap=TPixmap.Create( width,height,PF_BGRA8888 )


I made a local GrabPixmapDX7 function (90% copy&paste), so it isn't neccessary to change the original module at all.

Mods: Am I allowed to poste complete code parts from BRL modules here?

EDIT: Though this makes the DX7 version work the same as the GL version, he problem you describe is still existing:(