VTable property (Main Control)

Visual Basic example
Visual C++ 4.0 example

Syntax short VTable (short iIndex);

Overview:  Refer to Changing Brightness and Contrast.

Remarks

Value lookup table. The Value indicates the amount of black 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 bUseVTable parameter is set to TRUE when the RemapHue method is called. Hue, Saturation, and Value levels range from 0 to 255. Therefore, the lookup tables each have 256 entries. The current hue, saturation and value of a pixel correspond to the table indexes.

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

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

Value entries range from 0 to 255 where

Value 0 contains the most black.

Value 255 contains no black.

See Also

Elements:  RemapHue method, MaskTable property, HTable property, STable property, HSV_HfromRGB method, HSV_SfromRGB method, HSV_VfromRGB method, RGBfromHSV method

Topics:  Raster Images: Modifying Intensity Values