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

LightX API -> lxgfx -> drawalpharect

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

lxgfx.drawalpharect


procedure drawalpharect(
  dest: tlxhandle;
  src: tlxhandle;
  x, y: tlxposition;
  globalalpha: single;
  alphachannel: boolean;
  src_x, src_y, src_w, src_h: tlxposition
);


Draws a portion of the source surface on top of the destination surface with alpha blending.

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.

globalalpha: single
Global alpha value. 1 = normal, 0.5 = half transparent, etc.

alphachannel: boolean
Utilise alpha channel in source buffer. If FALSE, this function acts like lxgfx.drawrect except with global alpha.

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

Class: lxgfx