Skip to main content

convertPicture

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

ParameterTypeDescription
aPicturepicture<-Picture to be converted
->Converted picture
codecstring->Picture Codec ID
compressionnumber->Quality 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.