Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
TransparentColor Property
See Also 
Leadtools Namespace > RasterImage Class : TransparentColor Property




Gets or sets the transparent color used when painting this image.

Syntax

Visual Basic (Declaration) 
Public Property TransparentColor As RasterColor
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterColor
 
instance.TransparentColor = value
 
value = instance.TransparentColor
C# 
public RasterColor TransparentColor {get; set;}
Managed Extensions for C++ 
public: __property RasterColor get_TransparentColor();
public: __property void set_TransparentColor( 
   RasterColor value
);
C++/CLI 
public:
property RasterColor TransparentColor {
   RasterColor get();
   void set (RasterColor value);
}

Return Value

The transparent color used when painting this image.

Remarks

The TransparentColor of a RasterImage is used when the Transparent property value is set to true.

Note, transparent paint does not work with RasterPaintEngine.Gdi. For more information, refer to RasterPaintProperties.

For more information, refer to PNG Files and Transparency.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also