fg_scaledcb()

Win32 DirectX Fastgraph/Light

Prototype

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

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

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

Description

The fg_scaledcb() function scales a direct color bitmap.

For high color virtual buffers, each pixel in the bitmaps is a 16-bit (two byte) encoded RGB value. For true color virtual buffers, each pixel is a 24-bit (three byte) RGB value, stored blue byte first, then green byte, then red byte.

Parameters

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

dest is the name of the array that will receive the resulting scaled direct color 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_scale()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.