imagekitcontrolname.GetFile().SetPalRed(short Val)
Reference
The values can range from 0 to 255
The first page is 0. (For FPX format the base image is also 0)
Explanation
The PalRed property sets the Red component (RGB values) of the transparent color when saving an image as a GIF or PNG image.
When saving an image as a GIF or PNG image, a color can be transparent by setting the appropriate RGB values in each of the PalBlue, PalGreen, and PalRed properties. The values of these properties can be set directly, however, it is oftentimes more convenient to retrieve the RGB values of the color that you want to be transparent directly from the displayed image. The ImageKit Control also has PalBlue, PalGreen, and PalRed properties that can retrieve the RGB values from an image being displayed. Once retrieved, the exact RGB values can be passed into the file control PalBlue, PalGreen, and PalRed properties. For details about the ImageKit Control PalBlue, PalGreen, and PalRed properties, please refer to the ImageKit Control reference section.
This property value is valid when the Transparent property is True.
Setting this value
This value can be set at run-time.Retrieving this value
This value can be retrieved at run-time.