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

LightX API -> lximgloader -> file_to_surface

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

lximgloader.file_to_surface


function file_to_surface(
  filename: string;
  lxgfx: tlxgfx
): tlxhandle;


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

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

filename: string
The file 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