fg_contdcb()

Win32 DirectX Fastgraph/Light

Prototype

void fg_contdcb (void *source, void *dest, int lower, int upper, int size);

Sub fg_contdcb (source() As Any, dest() As Any, ByVal lower As Long, ByVal upper As Long, ByVal size As Long)

procedure fg_contdcb (var source, dest; lower, upper, size : integer);

Description

The fg_contdcb() function applies a contrast enhancement 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.

lower is the lower bound. All color components below this value will be set to zero. It must be between 0 and 254.

upper is the upper bound. All color components above this value will be set to 255. It must be between 1 and 255 and greater than the lower bound.

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

fg_contrgb(), fg_contvb()

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.