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

LightX API -> lxgfx -> maskrect

Last modified on Thu, 29th Mar 2007 at 19:25 UTC by zipplet

lxgfx.maskrect


procedure maskrect(
  dest: tlxhandle;
  src: tlxhandle;
  x, y: tlxposition;
  src_x, src_y, src_w, src_h: tlxposition;
  colourkey: tlxcolour32
);


Draws a portion of pixels from the source surface on top of the destination surface where they don't match the colourkey.

dest: tlxhandle
The surface to draw on.

src: tlxhandle
The surface to draw onto the destination surface.

x, y: tlxposition
The X, Y co-ordinates to start drawing at on the destination surface.

src_x, src_y, src_w, src_h: tlxposition
The portion of the source surface to draw onto the destination surface.

colourkey: tlxcolour32
Any pixels matching this colour will not be drawn.

Class: lxgfx