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

LightX API -> lxgfx -> getscanlineptr

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

lxgfx.getscanlineptr


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


Return a pointer to the beginning of the image 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.

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