Grab the screen

Blitz3D Forums/Blitz3D Programming/Grab the screen

..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?

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

i have that..its not working...grabbing only part before RENDERWORLD...HUD is after renderworld (FastImage)

Can you show your code?

..Im sorry..it was my bad...after i changed order with FLIP, it worked out...