Why SaveBuffer does not work ?
Blitz3D Forums/Blitz3D Beginners Area/Why SaveBuffer does not work ?
| ||
Hi all there, I like to take a screenshot from within my app. But the command: If KeyHit(183) Then SaveBuffer(FrontBuffer(),"screenshot.bmp") halts the program flow for a short moment but save no image at all. Thank you lo-tekk |
| ||
Have you tried saving the backbuffer()? Not sure what you're drawing setup is though? |
| ||
Thank you for your suggestion, but same result with Backbuffer. The command is nested within the mainloop; Graphics3D initialized, all runs well. Beside of this. Pressing the key halts the program just like grabbing the image, but no save to harddrive. Strange. ------------------------------------------------------------ It works with another key. Maybe its keyboard driver related. Thank You |
| ||
Key 183 is the "SysReq/Print Screen" key which, under windows, copies a screenshot to the clipboard. This why you get the pause when pressing it. Different keyboards/drivers mean some of the more obscure keys may not be useable in blitz. It seems key 183 isn't working on your PC. |
| ||
Sorry to hijack your thread for my own issues, but when I tried to save an image of my game, it saves it, but the player and explosions, and some other images are not in the screenshot. I tried placing it in different parts of my code thinking it was saving before the images were drawn but it still does the same thing. I will try to put it in a different spot, but any suggestions? |
| ||
Oh, nevermind, I fixed it. It was not between flip and cls |
| ||
Thank you for all replies. Finally i have changed the key to some more ordinary. Didn't knew about this PRINTSCREEN feature. What a shame ;-) @Grantyt3: NP |