ColorBrightnessContrast

#include "BIImage.h"

 

HANDLE CALLBACK ColorBrightnessContrast( HANDLE hDib1,
short          nBrightness,
short          nContrast,
BOOL       bShowDialog)

Description

Enables changing the brightness and contrast of an under- or overexposed non monochrome device independent bitmap (DIB).

The values of nBrightness and nContrast can be in the rangeof  -100 to 100.

Examples

color                                                   contrasted

The original 900 x 1300 sized color image and the brightness/contrast operated image with Brightness = 42 and Contrast = 34 parameter values.

Parameters

HANDLE

hDib1

Handle to the input non monochrome device independent bitmap.

short

nBrightness

Value of the brightness in the range  of -100 to 100.

short

nContrast

Value of the contrast in the range of -100 to 100.

BOOL

bShowDialog

Show preview dialog

Return values

Return a handle to a device indepent bitmap if successful or NULL if fails.

Programming notes

None.

Requirements

Header :     Declared in BIImage.h; include BIImage.h.

Library :    Use BIImage.lib.

DLLs :       BIimage.dll.

Code example

None at present.