KCML_Jpeg_Load

Purpose

Convert a Jpeg format image to a 2 dimenisonal array representing the image.

Definition

DEFSUB 'KCML_Jpeg_Load(BYREF image$()_KCML_RGBA), BYREF Jpeg$, BYREF err$) AS Bool

Parameters

image2 dimensional array representing the image. The array is resized to the size of the image loaded.
JpegBuffer containing the jpeg image.
errAn 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.