The TransparentRed, TransparentGreen, and TransparentBlue properties are used to set a transparent color in the base (raster) image.
[Visual Basic] Public Property TransparentRed
As Byte
[C#] public byte TransparentRed {get;
set;}
Property Value
Values range from 0 to 255
Explanation
The TransparentRed, TransparentGreen, and TransparentBlue 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.
Example
Below the code snippet illustrates how to set the transparent color to white: (in Visual Basic)
ImageKit1.Transparent = True ImageKit1.TransparentBlue = 255 ImageKit1.TransparentGreen = 255 ImageKit1.TransparentRed = 255 ImageKit1.LayerNumber = -1 ImageKit1.File.LoadImageFromFile(Newtone.ImageKit.Win.LoadFileType.Load)
See Also
ImageKit Members | Newtone.ImageKit.Win.ImageKit