The TransRed, TransGreen, and TransBlue properties are used to set a transparent color in the base (raster) image.
[Visual Basic]   imagekitcontrolname.TransGreen [= Integer ]
[Visual C++]     [short = ]imagekitcontrolname.GetTransGreen()
                 imagekitcontrolname.SetTransGreen(short Val)
[VB.NET]   imagekitcontrolname.TransGreen [= Short ]
[C#.NET]   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

    ImageKit1.TransGreen = 255

    ImageKit1.TransRed = 255

    ImageKit1.Transparent = True

    ImageKit1.LayerNo = -1

    ImageKit1.File.LoadFile(ikLoad)

Setting this value

  This value can be set at run-time.

Retrieving this value

  This value can be retrieved at run-time.

 

The ImageKit10 ActiveX is a product created by Newtone Corporation