fg_invert()

Win32 DirectX Fastgraph/Light

Prototype

void fg_invert (void *bitmap, int width, int height);

Sub fg_invert (bitmap() As Any, ByVal width As Long, ByVal height As Long)

procedure fg_invert (var bitmap; width, height : integer);

Description

The fg_invert() function inverts the orientation of a monochrome, 256-color, or direct color bitmap. Fastgraph's bitmapped image display functions expect the bitmap to be stored starting with the bottom row and proceeding toward the top. The fg_invert() function will reverse the row order of such bitmaps, so that a "top to bottom" image becomes a "bottom to top" image, or vice versa.

Parameters

bitmap is the name of the array containing the bitmap.

width is the bitmap width in bytes.

height is the bitmap height in bytes.

Return value

none

Restrictions

none

See also

fg_clipdcb(), fg_clipmap(), fg_clpimage(), fg_drawdcb(), fg_drawmap(), fg_drwimage(), fg_flipdcb(), fg_flpimage(), fg_getdcb(), fg_getimage(), fg_getmap(), fg_invdcb(), fg_putimage(), fg_revdcb(), fg_revimage()

Examples

TMcube, TMcubeX

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.