Saving image

BlitzPlus Forums/BlitzPlus Programming/Saving image

Couple of things, first off, SetBuffer ImageBuffer() at the top wont work as you dont specify an image in the parameters. (eg SetBuffer ImageBuffer(image) ) And in this case, your calling it before you have created one single image.

Secondly, GraphicsWidth and GraphicsHeight requires opening and closing brackets after each command, that should correctly set up the image and it will exist

GraphicsWidth()
GraphicsHeight()

I've also noticed that you are'nt drawing it in your main loop, you need to SetBuffer ImageBuffer(image) before drawing on it, then after that, SetBuffer BackBuffer() then draw your image/flip etc etc. e.g.

SetBuffer ImageBuffer(image)
//Draw stuff
SetBuffer BackBuffer()
DrawImage image,0,0
Flip


Hope that helps