Function group | Execute on client | Platform(s) |
---|---|---|
Picture | NO | Win, Mac |
pictconvto(source-format,source-data,dest-format)
Converts the binary source-data (with or without our internal header) from the source-format to the dest-format,and returns the resulting binary value.
On macOS, conversion supports all bitmap data formats, including PNG, TIFF, BMP, JPEG, and GIF. Where a source data format is empty, an attempt will be made to convert from any supported bitmap image representation. In this case, the data must be in raw format with no Omnis header.
See pictconvfrom() for details of possible formats.
The following example converts the PNG data in lPngData to JPEG.
Do pictconvto("png",lPngData,"jpeg") Returns lJpegData
# converts the PNG data in lPcxData to JPEG