fg_rotate()

Win32 DirectX Fastgraph/Light

Prototype

void fg_rotate (void *source, void *dest, int width, int height, int angle);

Sub fg_rotate (source() As Any, dest() As Any, ByVal width As Long, ByVal height As Long, ByVal angle As Long)

procedure fg_rotate (var source, dest; width, height, angle : integer);

Description

The fg_rotate() function rotates a 256-color bitmap (around its center) by a specified angle.

Parameters

source is the name of the array containing the 256-color bitmap to be rotated.

dest is the name of the array that will receive the resulting rotated 256-color bitmap.

width is the source bitmap width in pixels. It must be greater than zero.

height is the source bitmap height in pixels. It must be greater than zero.

angle is the rotation angle, expressed in tenths of degrees and measured counterclockwise from the positive x axis.

Return value

none

Restrictions

none

See also

fg_rotdcb(), fg_rotsize()

Examples

Rotate

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.