fg_scale()

Win32 DirectX Fastgraph/Light

Prototype

void fg_scale (void *source, void *dest, int sw, int sh, int dw, int dh);

Sub fg_scale (source() As Any, dest() As Any, ByVal sw As Long, ByVal sh As Long, ByVal dw As Long, ByVal dh As Long)

procedure fg_scale (var source, dest; sw, sh, dw, dh : integer);

Description

The fg_scale() function scales a 256-color bitmap.

Parameters

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

dest is the name of the array that will receive the resulting scaled bitmap.

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

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

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

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

Return value

none

Restrictions

The maximum allowable width or height of source and dest is 8,192 pixels.

See also

fg_scaledcb()

Examples

Scale

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.