Click or drag to resize
CanvasSolidColorBrush Class
The simplest kind of brush. Paints things a solid color.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.BrushesCanvasSolidColorBrush

Namespace:  Microsoft.Graphics.Canvas.Brushes
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public sealed class CanvasSolidColorBrush : ICanvasBrush, 
	IDisposable

The CanvasSolidColorBrush type exposes the following members.

Constructors
  NameDescription
Public methodCanvasSolidColorBrush
Initializes a new instance of the CanvasSolidColorBrush class.
Top
Properties
  NameDescription
Public propertyColor
Gets or sets the color of the brush.
Public propertyColorHdr
Gets or sets the high-dynamic-range color of the brush.
Public propertyDevice
The device associated with this brush.
Public propertyOpacity
Gets or sets the opacity of the brush.
Public propertyTransform
Gets or sets the brush transform matrix.
Top
Methods
  NameDescription
Public methodStatic memberCreateHdr
Initializes a new instance of the CanvasSolidColorBrush class using a specified high-dynamic-range color.
Public methodDispose
Releases all resources used by the CanvasSolidColorBrush.
Top
Remarks

When using Direct2D interop, this Win2D class corresponds to the Direct2D interface ID2D1SolidColorBrush.

See Also