SaveImg

Syntax

Success = SaveImg(Img, Path$, ImgSaveFormat=#PG_Img_Save_PNG, Flags=#Null)

Description

Saves the specified ProGUI image to disk in the desired format.

Parameters

Img
The handle of the ProGUI image object to save.

Path$
The destination file path where the image will be saved.

ImgSaveFormat (optional)
The format to save the image as. Default is #PG_Img_Save_PNG. Other formats include:

#PG_Img_Save_BMP
#PG_Img_Save_ICO
#PG_Img_Save_JPG
#PG_Img_Save_TIFF
#PG_Img_Save_GIF
#PG_Img_Save_WMP

Flags (optional)
Reserved for future use. Default is #Null.

Return Value

Returns #True if the image was successfully saved, or #False on failure.

See Also

LoadImg, CreateImg

Supported OS

Windows, Linux