Grab the screen

Blitz3D Forums/Blitz3D Programming/Grab the screen

Naughty Alien(Posted 2008) [#1]
..is there any way to grab screenshot from my screed other than print screen button or from within B3D code..simply because whole HUD based on fastimage doesnt appear on grabbed image..I guess its because it came after RenderWorld...any other way you guys using for such things?


KillerX(Posted 2008) [#2]
Is This what you want?


Graphics3d 800,600
Setbuffer Backbuffer()
While Not Keyhit(1)
UpdateWorld()
RenderWorld()
;2d code goes here
Flip
SnapShot()

Wend


Function SnapShot()
If MouseHit(1)
SaveBuffer (FrontBuffer(),"ScreenShot.bmp")
endif
End Function

Left mouse button takes screenshots


Naughty Alien(Posted 2008) [#3]
i have that..its not working...grabbing only part before RENDERWORLD...HUD is after renderworld (FastImage)


KillerX(Posted 2008) [#4]
Can you show your code?


Naughty Alien(Posted 2008) [#5]
..Im sorry..it was my bad...after i changed order with FLIP, it worked out...