Grabbing the screen image

Blitz3D Forums/Blitz3D Programming/Grabbing the screen image

Is it possible to grab the image on the screen and make it an image in blitz3D, so I could make the background image of a game the image on the screen the moment the program was launched (before the big black window appears)? I saw this in screensavers, but it may have been done in bmax, is this possible for b3d?

Do you mean like
img=CreateImage(GraphicsWidth(),GraphicsHeight())
CopyRect(0,0,GraphicsWidth(),GraphicsHeight(),0,0,BackBuffer(),ImageBuffer(img)) ; or use FrontBuffer() instead of BackBuffer()


SaveBuffer(FrontBuffer(),"screenshot.bmp")

I think he means like the desktop image. I don't think that's possible in Blitz, is it?

What buggy says

hmm...so if b3d can't do that, is there a way to load the desktop background image?

i think b+ can, not sure though. look in the archives