fg_rotsize()

Win32 DirectX Fastgraph/Light

Prototype

void fg_rotsize (int width, int height, int angle, int *new_width, int *new_height);

Sub fg_rotsize (ByVal width As Long, ByVal height As Long, ByVal angle As Long, new_width As Long, new_height As Long)

procedure fg_rotsize (width, height, angle : integer; var new_width, new_height : integer);

Description

The fg_rotsize() function determines the resulting dimensions of a bitmap when rotated by a given angle.

Parameters

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

height is the unrotated 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.

new_width receives the rotated bitmap width in pixels.

new_height receives the rotated bitmap height in pixels.

Return value

none

Restrictions

none

See also

fg_rotate(), fg_rotdcb()

Examples

Rotate

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.