This property sets the transparent color in the image set in the Layer(LayerNo).ImageHandle property.

[Visual Basic]   imagekitcontrolname.Layer(Index).TransRed [= integer ]
[Visual C++]     [short = ]imagekitcontrolname.GetLayer(Index).GetTransRed()
                 imagekitcontrolname.GetLayer(Index).SetTransRed(short Val)
[VB.NET]   imagekitcontrolname.get_Layer(Index).TransRed[= Short ]
[C#.NET]   imagekitcontrolname.get_Layer(Index).TransRed[= short ]

* The index can range from 0 to 99

Reference

TransRed is the transparent color's red value. (Values range from 0 to 255. Default value is 0)

Explanation

The TransRed property sets the transparent color in the image set in the Layer(LayerNo).ImageHandle property. This property is useful when multiple image layers are displayed at the same time. When a transparent color is used, the next image layer below the transparent color will appear. The image where the transparent color is set must be 8 bit color or 24 bit color and is specified by the Layer(LayerNo).ImageHandle property. The default value is true. If a vector image is set in the base image, this property is disabled.

 

Example: Setting the transparent color to white

    ImageKit1.Layer(0).Transparent = True

    ImageKit1.Layer(0).TransBlue = 255

    ImageKit1.Layer(0).TransGreen = 255

    ImageKit1.Layer(0).TransRed = 255

    ImageKit1.LayerNo = 0

    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