ColorBrightnessContrast  Method

Description         Changes brightness and contrast of a Device Independent Bitmap.

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.

Usage                  NewDib = [BIImage.]ColorBrightnessContrast Dib Brightness Contrast bShowDialog

Remarks             NewDib                  LONGLONG The new device independent bitmap.

                            Dib                          LONGLONG Device independent bitmap to process.

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

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

                            BShowDialog         BOOL           Display preview dialog.

 

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

The values of Brightness and Contrast can be in the range of  -100 to 100.