The following example gives a blank screen with the PF_RGBA8888 format and using the D3D7Max2DDriver(), using PF_BGRA8888 or GLMax2DDriver() works as expected.
'SetGraphicsDriver GLMax2DDriver() SetGraphicsDriver D3D7Max2DDriver() Const Pixfmt=PF_RGBA8888 ' doesn't work in D3D7Max2DDriver() 'Const Pixfmt=PF_BGRA8888 Graphics 640, 480,32 Global pmap:TPixmap = CreatePixmap(100, 100, pixfmt) For x = 0 To 99 For y = 0 To 99 WritePixel(pmap, x, y, $ff0080ff) Next Next DrawPixmap pmap, 0, 0 Flip WaitKey End