fg_gammadcb()Win32 DirectX Fastgraph/Light Prototype 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); Description The fg_gammadcb() function applies a gamma correction transform to a direct color bitmap. Parameters 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 none Restrictions This function is meaningful only with direct color virtual buffers. See also
|
 
copyright 2001 Ted Gruber Software, Inc.