GRAYCOLOR
Delphi Syntax:
GRAYCOLOR= Packed Record
crColor: RGBQUAD;
uThreshold: L_UINT;
end;
C++ Builder Syntax:
struct GRAYCOLOR
{
RGBQUAD crColor;
L_UINT uThreshold;
};
The GRAYCOLOR record (structure) contains information about gray color intensities (uThreshold) and the associated colors (crColor) used in the ColorizeGray method.
Member |
Description |
crColor |
The RGB color used for coloring the specified range of intensities set in uThreshold. crColor.rgbReserved is ignored. |
uThreshold |
The maximum value of the pixels, which will be colored with this color. The pixels with a value smaller than this will have the color crColor. If the GRAYCOLOR structure is the last in the pGrayColors array, then this value is ignored and the maximum possible value will be used instead. |
|
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. |