version 11
CONVERT PICTURE (picture; codec)
Parameter | Type | Description | |
picture | Picture | Picture to be converted | |
Converted picture | |||
codec | String | Picture Codec ID |
Description
The CONVERT PICTURE command converts picture into a new type.
The codec parameter indicates the type of picture to be generated. A Codec can be an extension (for example, ".gif"), a Mime type (for example, "image/jpeg") or a 4-character QuickTime code (for example, "PNTG"). You can get a list of Codecs that are available using the PICTURE CODEC LIST command.
If the picture field or variable is a compound type (if, for example, it is the result of a copy-paste action), only the information corresponding to the codec type are preserved in the resulting picture.
Example
Conversion of the vpPhoto picture to the jpeg format:
CONVERT PICTURE(vpPhoto;".jpg")
See Also