KCML_Png_Load
Purpose
Convert a PNG format image to a 2 dimenisonal array representing the image.
Definition
DEFSUB 'KCML_Png_Load(BYREF image$()_KCML_RGBA), BYREF png$, BYREF err$) AS Bool
Parameters
| image | 2 dimensional array representing the image. The array is resized to the size of the image loaded. |
| png | Buffer containing the PNG image. |
| err | An error message if the image fails to load. |
Return
TRUE if the image is loaded
Description
This function takes a PNG format image as a string and returns a 2 dimensional string array of RGBA tuples respresenting the image. The PNG format image may be loaded from a .PNG 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.