LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Opacity Property
See Also 



Gets or sets a value that indicates the opacity to use when painting the Leadtools.RasterImage.

Syntax

Visual Basic (Declaration) 
Public Property Opacity As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintProperties
Dim value As Integer
 
instance.Opacity = value
 
value = instance.Opacity
C# 
public int Opacity {get; set;}
C++/CLI 
public:
property int Opacity {
   int get();
   void set (    int value);
}

Property Value

A value between 0 and 255 the opacity level to use when painting the Leadtools.RasterImage. Default value is 255.

Example

Remarks

An Opacity value of 0 indicates that the image is completely transparent, while a value of 255 indicates that the image is completely opaque. A value of 128 indicates the image is 50 percent opaque, a value of 170 indicates the image is 72.5 percent opaque, and so on.

This property is only valid when the RasterPaintEngine.GdiPlus engine is used and has no effect on the other engines.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also