Skip to main content
Version: 1.0.0

convertPicture

convertPicture* ( aPicture : picture , codec : string )
convertPicture ( aPicture : picture , codec : string , compression : number )

ParameterTypeDescription
aPicturepicturePicture to be converted
Converted picture
codecstringPicture Codec ID
compressionnumberQuality of compression

Description

The convertPicture command converts aPicture into a new type.

The codec parameter indicates the type of picture to be generated. A Codec can be an extension (for example, ".gif") or a Mime type (for example, "image/jpeg"). You can get a list of Codecs that are available in the Picture Codec IDs section.