The TransRed, TransGreen, and TransBlue properties are used to set a transparent color in the base (raster) image.

[C++Builder]   imagekitcontrolname->TransGreen [= short ]
[Delphi]   imagekitcontrolname.TransGreen [= Short ]

Reference

TransGreen      The transparent color's green value.

Values range from 0 to 255

Explanation

The TransRed, TransGreen, and TransBlue properties are used to set a transparent color in the base (raster) image. The ImageKit Control background will be seen in the areas of the image that are set to transparent. To set a transparent color in an image, the image must be either 8 bit color or 24 bit color. If a vector image is set in the base image, these properties are disabled.

To set a transparent color in an image layer, please refer to the Layer.TransRed, Layer.TransGreen, and Layer.TransBlue properties.

 

Example: Setting the transparent color to white

    ImageKit1.TransBlue := 255;
    VImageKit1.TransGreen := 255;
    VImageKit1.TransRed := 255;
    VImageKit1.Transparent := True;
    VImageKit1.LayerNo := -1;
    VImageKit1.File.LoadFile(vikLoad);

Setting this value

This value can be set at design-time and run-time.

Retrieving this value

This value can be retrieved at run-time.

 

The ImageKit10 VCL is a product created by Newtone Corporation