saveImage

HC Graphics Bitmaps saveImage
loadImage BitMakeTransparent

saveImage bitmap filename


command saving the bitmap to a file. File formats currently supported are:

wxBMPHandler  For loading and saving.
wxPNGHandler  For loading (including alpha support) and saving.
wxJPEGHandler  For loading and saving.
wxGIFHandler  Only for loading, due to legal issues.
wxPCXHandler  For loading and saving.
wxPNMHandler  For loading and saving.
wxTIFFHandler  For loading and saving.
wxIFFHandler  For loading only.
wxXPMHandler  For loading and saving.
wxICOHandler  For loading and saving.
wxCURHandler  For loading and saving.
wxANIHandler  For loading only.

When saving in PCX format, wxPCXHandler will count the number of different colours in the image; if there are 256 or less colours, it will save as 8 bit, else it will save as 24 bit.

When saving in PNM format, wxPNMHandler will always save as raw RGB.

Example:

b=loadImage "iris.png
saveImage b "temp.png

Reference:

loadImage BitMakeTransparent