Function group | Execute on client | Platform(s) |
---|---|---|
Picture | NO | Win, Mac |
pictconvfrom(format,binary-raw-data)
pictconvfrom() takes the binary-raw-data in the specified format and returns a value suitable for use in relevant Omnis fields. Typically this means that pictconvfrom() adds header information to raw data.
Valid values for the format are as follows:
CS24
Omnis color shared picture format (16 million colors), including the internal Omnis header.
PNG
PNG (Portable Network Graphics) format (Raw, as written on disk)
JPEG
JPEG format (Raw, as written on disk)
In addition, it is possible to add further formats using the external component interface.
The following example reads a JPEG file from disk and displays it.
ReadBinFile ("c:\myfile.jpg",lJpegData)
Do pictconvfrom("jpeg",lJpegData) Returns lJpegData
# converts the JPEG data lJpegData into a suitable value for Omnis fields