Warning: This site is under construction, most links will be broken.
LightX API -> lxgfx -> rotozoom
Last modified on Sat, 31st Mar 2007 at 12:08 UTC by zippletlxgfx.rotozoom
procedure rotozoom(
dest: tlxhandle;
src: tlxhandle;
x, y: tlxposition;
angle: single;
scalex, scaley: single;
alpha: single;
alphamode: tlxalphamode;
colourkey: tlxcolour32
);
Draw the source surface onto the destination surface using many possible transformations including rotation, alpha blending, masking and stretching.
dest: tlxhandle
The surface to draw on.
src: tlxhandle
The surface to draw from.
x, y: tlxposition
The origin of the output. Note that with rotozoom, the origin is the centre of the output not the top left corner.
angle: single
Rotation angle in degrees. Rotation is clockwise.
scalex, scaley: single
Used for stretching the output. 1 = normal, 0.5 = half size, 2 = double size etc.
alphamode: tlxalphamode
Specify how rotozoom should handle alpha blending.
amNone: the alpha channel is completely ignored
amMask: colours matching the colourkey are transparent
amAlpha: the alpha channel is respected
colourkey: tlxcolour32
Colourkey to be used with the amMask alpha mode.
Class: lxgfx