Parameters
Name | Explanation |
---|---|
Red | Array of the retrieved red palette information |
Green | Array of the retrieved green palette information |
Blue | Array of the retrieved blue palette information |
ImageHandle | The image handle of the raster image. |
* In Visual Basic the style of the argument is Red(0)
Return Value
Returns True (nonzero) if successful, otherwise returns False (0).
Explanation
When the ImageHandle parameter contains a valid image
handle
The image data that the ImageHandle parameter refers to will be
processed.
When the ImageHandle parameter contains 0
The image data determined by the LayerNo property will be processed. If
the LayerNo property is -1 (the
base image) then the image data referred to by the ImageHandle property will be
processed. If the value of the LayerNo property is between 0 and 99 then
the image data referred to by the Layer(LayerNo).ImageHandle property
will be processed.
To find out how many items are in the various RGB arrays
retrieved from the palette information, please refer to the
PalCount property. The PalCount property value is refreshed
when ever an image handle is set into the ImageHandle property of the Layer(LayerNo).ImageHandle
property. Use the GetImageType
method to retrieve the PalCount
property value.
For programs that do not require variant types, please refer to the
GetPalette method.