pictconvto()

Function group Execute on client Platform(s)
Picture NO Win, Mac

Syntax

pictconvto(source-format,source-data,dest-format)

Description

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.

Example

Do  pictconvto("png",lPngData,"jpeg"Returns lJpegData
# converts the PNG data in lPcxData to JPEG