STableL property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short STableL (long lIndex);

Overview:  Refer to Changing Brightness and Contrast.

Remarks

(Document/Medical only) Saturation lookup table. The saturation indicates the amount of white present in a color. This is one of the four tables that the RemapHue method uses to change the bitmap's hue, saturation and value. This property is used only if the bUseSTable parameter is set to TRUE when the RemapHue method is called and the RemapHueTablesSize property is set to 65536. Hue, Saturation, and Value levels range from 0 to 255. The current hue, saturation and value of a pixel correspond to the table indexes.

If the bUseMaskTable and bUseSTable parameters are set to TRUE when the RemapHue method is called and the MaskTableL(i) entry for a particular hue is not zero, then the saturation is changed to the saturation in STableL(i). If MaskTableL(i) is 0 then STableL(i) is ignored. For example, if RemapHue is called with both bUseMaskTable and bUseSTable set to TRUE, then if a pixel has a hue of 85 and the MaskTableL(85) is not 0, the saturation of the pixel is changed to STableL(85).

If the bUseMaskTable parameter is FALSE and the bUseSTable parameter is TRUE when the RemapHue method is called, then the Saturation for each color present in the image will be changed to STableL(i). For example, if a pixel has a hue of 70, the saturation of the pixel is changed to STableL(70). If the next pixel has a hue of 75, the saturation of that pixel is changed to STableL(75).

Saturation entries range from 0 to 255 where

Saturation 0 contains the most white.

Saturation 255 contains no white.

This property provides support for 16-bit grayscale and 48-bit color images. Support for 16-bit grayscale and 48-bit color images is provided only in Document/Medical toolkits.

See Also

Elements:  RemapHue method, MaskTableL property, HTable property, VTableL property, MaskTable property, HTable property, VTable property, HSV_HfromRGB method, HSV_SfromRGB method, HSV_VfromRGB method, RGBfromHSV method

Topics:  Raster Images: Modifying Intensity Values