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

LightX API -> lxgfx -> getalphascanlineptr16bpp

Last modified on Fri, 30th Mar 2007 at 02:03 UTC by zipplet

lxgfx.getalphascanlineptr16bpp


function getalphascanlineptr16bpp(
  surface: tlxhandle;
  y: tlxposition
): pointer;


Return a pointer to the beginning of the alpha data for the requested scanline in a surface. This function can only be used on a locked surface and the pointer is only valid for the duration of the lock.

In 16bpp mode, the alpha channel is stored as a seperate buffer. This function can be used to obtain pointers to allow you to edit this data.

surface: tlxhandle
The surface to request the pointer for.

y: tlxposition
The scanline to request the pointer for. Range 0 - (surface_height - 1)

Class: lxgfx