Share via


InkDrawingAttributesPencilProperties.Opacity Property

Definition

Gets or sets the level of transparency used for rendering a pencil stroke on an InkCanvas.

Opacity is a static property of InkDrawingAttributes.

Get an instance of this class by calling InkDrawingAttributes.CreateForPencil and accessing InkDrawingAttributes.PencilProperties.

public:
 property double Opacity { double get(); void set(double value); };
double Opacity();

void Opacity(double value);
public double Opacity { get; set; }
var double = inkDrawingAttributesPencilProperties.opacity;
inkDrawingAttributesPencilProperties.opacity = double;
Public Property Opacity As Double

Property Value

Double

double

A value between 0.01 and 5.0 that specifies the opacity factor, with 5.0 indicating full opacity. The default value is 1.0.

Applies to

See also