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

LightX API -> lximgloader -> diraccess_to_surface

Last modified on Mon, 14th May 2007 at 20:11 UTC by zipplet

lximgloader.diraccess_to_surface


function diraccess_to_surface(
  diraccess: tdiraccessbase;
  filename: string;
  lxgfx: tlxgfx
): tlxhandle;


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

This function is provided for convenience; you can have the same behaviour by using lximgloader.stream_to_surface with a stream you opened with diraccess.

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

diraccess: tdiraccessbase
diraccess instance to use when opening the file.

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