Saving a jpeg of your graphics

November 4, 2009
by Lee Spector (lspector)

If you are using my “better-draw” code (with the variable bm defined as a bitmap%) then you can save an image with a call like this:

(send bm save-file "myImage.jpg" 'jpeg 100)

Other formats are available too. The 100 is a quality level. Check the documentation of save-file (method of bitmap%) for more details.


Leave a Reply

You must be logged in to post a comment.