Grabbing the screen image

Blitz3D Forums/Blitz3D Programming/Grabbing the screen image

chwaga(Posted 2008) [#1]
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?


Jasu(Posted 2008) [#2]
Do you mean like
img=CreateImage(GraphicsWidth(),GraphicsHeight())
CopyRect(0,0,GraphicsWidth(),GraphicsHeight(),0,0,BackBuffer(),ImageBuffer(img)) ; or use FrontBuffer() instead of BackBuffer()



Naughty Alien(Posted 2008) [#3]
SaveBuffer(FrontBuffer(),"screenshot.bmp")


Buggy(Posted 2008) [#4]
I think he means like the desktop image. I don't think that's possible in Blitz, is it?


chwaga(Posted 2008) [#5]
What buggy says


chwaga(Posted 2008) [#6]
hmm...so if b3d can't do that, is there a way to load the desktop background image?


mtnhome3d(Posted 2008) [#7]
i think b+ can, not sure though. look in the archives