PlateDIB.SetColorLookupTable() Method
Sets the actual colors used to display the 256 levels of the image. (256 element array of Long)
Syntax
PlateDIB.SetColorLookupTable(Colors)
The method syntax has these parts:
Part |
Description |
Colors (Long) |
256-element array of Long color values to be used to display the image. |
Return (Nothing) |
Does not return a value. |
Remarks
The PlateDIB.Render() method scales the image from 16-bit gray scale into 256 levels, the maximum that can be displayed in a Windows display. The color lookup table (CLUT) is used to map each of these 256 levels to a color for display. The simplest CLUT contains values from 0 to 255 in each of the 256 levels. This causes a 256 level grayscale display. By reversing the order of the values (CLUT(0)=255, CLUT(1) - 254, etc.) you can cause the image to be rendered as "negative video" (e.g., stars are black, background is white).By using other values in the CLUT, you can create false color images.
The color values are encoded into Long integers. If you use hex, the format is:
00BBGGRR
where BB is the blue level (0-255), GG is the green level, and RR is the red level. For example, in Visual Basic, bright yellow would be encoded &H0000FFFF& (actually, VB will supress the leading zeroes).
Copyright © 1999-2015, Robert B. Denny, Mesa, AZ