KCML_Image_Load
Purpose
Convert a Jpeg format image to a 2 dimenisonal array representing the image.
Definition
DEFSUB 'KCML_Image_Load(BYREF image$()_KCML_RGBA), BYREF Jpeg$, BYREF err$) AS KCML_IMAGE_ENUM
Parameters
| image | 2 dimensional array representing the image. The array is resized to the size of the image loaded. |
| Jpeg | Buffer containing the jpeg image. |
| err | An error message if the image fails to load. |
Return
TRUE if the image is loaded
Description
This function takes a Jpeg format image as a string and returns a 2 dimensional string array of RGBA tuples respresenting the image. The Jpeg format image may be loaded from a .jpg file. The function returns TRUE if it succceeds, and if it fails the parameter err$ will contain an error message.
See also
Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.