Saving image

BlitzPlus Forums/BlitzPlus Programming/Saving image

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If its a drawing program, I'd recommend drawing straight onto a blank image created by CreateImage()

Then save the image using SaveBuffer()

pcode:-


image = CreateImage(width, height)

if save
SaveBuffer(ImageBuffer(image),"imageFile.bmp")
end if

if load
image = LoadImage("imageFile.bmp")
end if


Something like that! ;)