comp • gb.qt4 • image • save

Image.Save (gb.qt4)

Sub Save ( Path As String [ , Quality As Integer ] )

Saves the image to a file. The file extension of Path will give the format of the saved image.

Supported formats are JPEG, PNG, BMP, GIF and XPM.

The range and interpretation for the Quality argument depends on the toolkit used: for gb.gtk it is [0; 100] whereas gb.qt4 can have [-1; 100]. -1 in gb.qt4 means to use default settings. Portable programs should restrict themselves to [0; 100]. 0 means good compression and bad quality.

See also