fg_grayrgb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_grayrgb (void *values, int count);

Sub fg_grayrgb (values() As Any, ByVal count As Long)

procedure fg_grayrgb (var values; count : integer);

Description

The fg_grayrgb() function applies a grayscale transform to a series of RGB color triples.

Parameters

values is the name of the array containing the RGB color components, arranged as three-byte RGB triples. Each RGB color component is a value between 0 and 255; increasing values produce more intense colors. The size of the values array must be at least 3*count bytes.

count is the number of RGB color triples to transform.

Return value

none

Restrictions

none

See also

fg_graydcb(), fg_grayvb()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.