Win32 DirectX Fastgraph/Light


void fg_gammadcb (void *source, void *dest, double gamma, int size);

Sub fg_gammadcb (source() As Any, dest() As Any, ByVal gamma As Double, ByVal size As Long)

procedure fg_gammadcb (var source, dest; gamma : double; size : integer);


The fg_gammadcb() function applies a gamma correction transform to a direct color bitmap.


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

dest is the name of the array that will receive the resulting transformed bitmap.

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.

size is the size of each direct color bitmap in pixels.

Return value



This function is meaningful only with direct color virtual buffers.

See also

fg_gammargb(), fg_gammavb()

Fastgraph Home Page


copyright 2001 Ted Gruber Software, Inc.