fg_gammargb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_gammargb (void *values, double gamma, int count);

Sub fg_gammargb (values() As Any, ByVal gamma As Double, ByVal count As Long)

procedure fg_gammargb (var values; gamma : double; count : integer);

Description

The fg_gammargb() function applies a gamma correction 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.

gamma is the gamma correction value. Values between 0.0 and 1.0 will lighten the image, while values greater than 1.0 will darken the image.

count is the number of RGB color triples to transform.

Return value

none

Restrictions

none

See also

fg_gammadcb(), fg_gammavb()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.