GrayColorThreshold property (ILEADRasterProcess)

Visual Basic example

Visual C++ example

 

Syntax

long GrayColorThreshold (short iIndex);

Overview

Refer to Grayscale Images

Remarks

(Raster Pro and above toolkits.) Gets or sets the maximum value of the pixels which will be colored by the ColorizeGray method.

The pixels with a value smaller than this will have the color that has been set in the GrayColorRed, GrayColorGreen and GrayColorBlue properties.

The maximum value depends on the image bits per pixel. For 8, 12 and 16-bit images the maximum value is 255, 4095 and 65535 respectively. However if you enter a value higher than the maximum, the value will be clipped at the maximum value.

See Also

Elements:

ColorizeGray method, GrayColorRed property, GrayColorGreen property, GrayColorThreshold property, GrayColorCount property

Topics:

Raster Image Functions: Doing Color Expansion or Reduction