Very Strange: Won't SaveImage

Blitz3D Forums/Blitz3D Beginners Area/Very Strange: Won't SaveImage

Crazy4Code(Posted 2005) [#1]
I'm trying to take a screenshot (or 10) and for some reason, it just won't do it:

If KeyHit(10)
SaveBuffer(BackBuffer(),"Images\screenshot.jpg")
End If

That is in my main loop. I have tried several different keys, and all of them do nothing. I'm probably missing something very obvioius. I've taken screenshots with blitz before.


Rhyolite(Posted 2005) [#2]
Try

SaveBuffer FrontBuffer(), FileName$

I 'think' you can only save as .bmp though, not .jpg

Rhy


GfK(Posted 2005) [#3]
Yup - Blitz can only save images in .bmp format. Which is most likely the problem unless you're getting black screens saved out, in which case you're trying to save the image somewhere between the Cls and stuff being drawn.


Crazy4Code(Posted 2005) [#4]
I fixed it. It wasn't between flip and cls.


sswift(Posted 2005) [#5]
I made that same mistake not long ago in Blitzplus. So frustrating. :-)