Warning: This site is under construction, most links will be broken.

LightX API -> lximageloader -> stream_to_surface

Last modified on Tue, 10th Apr 2007 at 13:07 UTC by zipplet

lximgloader.stream_to_surface


function stream_to_surface(
  t: tstream;
  lxgfx: tlxgfx
): tlxhandle;


Load an image from the given stream and return a handle to a LightX surface containing the image.

The image formats supported depend on the descendant class you created.

t: tstream
The stream to read.

lxgfx: tlxgfx
A pointer to the LightX graphics class instance that will be used to create the surface to hold the image.

Class: lximgloader