fg_getpixel()

Win32 DirectX Fastgraph/Light

Prototype

int fg_getpixel (int ix, int iy);

Function fg_getpixel (ByVal ix As Long, ByVal iy As Long) As Long

function fg_getpixel (ix, iy : integer) : integer;

Description

The fg_getpixel() function returns the color value of a specified pixel.

Parameters

ix is the pixel's screen space x coordinate.

iy is the pixel's screen space y coordinate.

Return value

The color value of the pixel. For 256-color virtual buffers, it will be between 0 and 255. For high color virtual buffers, it will be a 16-bit encoded RGB value. For true color virtual buffers, it will be a 32-bit xRGB value.

Restrictions

none

See also

fg_point(), fg_pointw(), fg_putpixel()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.