URL$ = EncodeImage(#Image [, ImagePlugin [, Flags]])
Encode the specified canvas image into an image URL.


#Image The image to encode.
ImagePlugin (optional) The format to encode the image in. This can be one of the following values:
  #PB_ImagePlugin_JPEG: encode the image in JPEG
  #PB_ImagePlugin_PNG : encode the image in PNG
Flags (optional) Parameters for the image plug-in. For now, only the quality setting is supported: a number from 0 (worse quality) to 10 (maximum quality). Only the JPEG plugins currently support it (default quality is set to '7' if no flags are specified).
Depth (optional) The depth in which to save the image. Valid values are 24 and 32. The default value is the original image depth.

Return value

Returns the URL containing the encoded image, or an empty string if the encoding has failed.

See Also


Supported OS


<- CreateImage() - Image Index - ExportImage() ->