RemapIntensity method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int RemapIntensity (int iChannel);

Delphi Syntax

RemapIntensity (iChannel:Integer): Integer;

Overview

Refer to Changing Brightness and Contrast.

Remarks

Uses a lookup table to change the bitmap's intensity values. You can apply the change to red, green, blue, or all color channels.

Use the RemapTable and RemapTableSize properties to maintain the lookup table. Intensity levels range from 0 to the value of RemapTableSize property - 1. The current intensity values correspond to the table indexes. The values of the entries are the new values to be applied.

This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.

See Also

Elements:

RemapTable property, RemapTableSize property

Topics:

Raster Images: Modifying Intensity Values

 

Raster Images: Where the Region Preempts the Bitmap