Screenshot

Blitz3D Forums/Blitz3D Programming/Screenshot

cermit(Posted 2003) [#1]
Does it work to make a screenshot function in blitz3d?
It would be good to know.


JaviCervera(Posted 2003) [#2]
I think the place for this topic is the Beginners forum, not the Advanced 3D one.

[EDITED -thx starfox-]SaveBuffer FrontBuffer(),"file.bmp"


starfox(Posted 2003) [#3]
SaveBuffer


Akat(Posted 2003) [#4]
sswift made it already


Ice9(Posted 2003) [#5]
here's what I use so it doesn't overwrite existing files
and numbers them sequentialy
just create a subdirectory in your directory called "screenshots"
 	;get key for screenshots
	keyboard=GetKey()				
	If keyboard=Asc("t")
		While FileType("./screenshots/screenshot"+(Str scount)+".bmp")=1
			scount=scount+1
		Wend
		
		screenshot$= "./screenshots/screenshot"+(Str scount)+".bmp"
		SaveBuffer(BackBuffer(),screenshot$) 
		scount=scount+1
	EndIf



cermit(Posted 2003) [#6]
Okej, thanks i didnt know it was that easy.