This property refers to the red value of the pixel at the clicked location in the base image in the ImageKit Control

[C++Builder]   imagekitcontrolname->PalRed [= short ]
[Delphi]   imagekitcontrolname.PalRed [= Smallint ]

Reference

Values range from 0 to 255.

Explanation

You can easily retrieve color information from the base image displayed in the ImageKit Control. All you need to do is to click on the color in the base image that you want to retrieve and the respective RGB values for that pixel are set in the PalRed, PalGreen and PalBlue properties. The PalRed property refers to the red value of the pixel at the clicked location in the base image in the ImageKit Control.

This property is used most often to make transparent GIF or PNG files. In order to set a color to be transparent in a GIF or PNG image you must use the FileIO.PalRed, FileIO.PalGreen, and FileIO.PalBlue properties. Although you can set these properties directly, it is sometimes difficult to know the exact color to set. One easy way is to click on the color in the image that you want to be transparent, then pass the retrieved RGB values from the PalRed, PalGreen and PalBlue properties to the FileIO.PalRed, FileIO.PalGreen, and FileIO.PalBlue properties.

Another way to retrieve the RGB values is by using the ImageKit.PrintDraw's GetPixel method.

Setting this value

This value cannot be set.

Retrieving this value

This value can be retrieved at run-time.

 

The ImageKit10 VCL is a product created by Newtone Corporation