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.