KCML_Jpeg_Save
Purpose
Save an image to a buffer in Jpeg format
Definition
DEFSUB 'KCML_Jpeg_Save(BYREF Jpeg$, BYREF image$()_KCML_RGBA), Quality) AS Bool
Parameters
| Jpeg | Buffer to receive jpeg image. The buffer is resized to the exact size needed. |
| image | 2 Dimensional string array representing the image. |
| Quality | Integer giving the quality of output image - 100 for maximum quality (and largest size) down to 1 for lowest quality and maximum compression |
Return
TRUE if the function succeeds
Description
This function takes a 2 dimensional string array of RGBA tuples and returns a string representing the image as a Jpeg format image. This string may be saved to disk as a .jpg file.
See also
Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.