KCML_Png_Save
Purpose
Save an image to a buffer in PNG format
Definition
DEFSUB 'KCML_Png_Save(BYREF png$, BYREF image$()_KCML_RGBA)) AS Bool
Parameters
| png | Buffer to receive PNG image. The buffer is resized to the exact size needed. |
| image | 2 Dimensional string array representing the image. |
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 PNG format image. This string may be saved to disk as a .PNG file.
See also
Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.