Click or drag to resize
CanvasLinearGradientBrush Class
A brush used to paint a linear gradient.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.BrushesCanvasLinearGradientBrush

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

The CanvasLinearGradientBrush type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAlphaMode
Specifies the treatment of alpha.
Public propertyBufferPrecision
Specifies the precision used for computation.
Public propertyDevice
The device associated with this brush.
Public propertyEdgeBehavior
Specifies the behavior for pixels which fall outside of the gradient's typical rendering area.
Public propertyEndPoint
The point on the canvas on which the gradient stops.
Public propertyOpacity
The opacity affecting the brush.
Public propertyPostInterpolationSpace
Specifies the color space to be used before interpolation.
Public propertyPreInterpolationSpace
Specifies the color space to be used after interpolation.
Public propertyStartPoint
The point on the canvas on which the gradient starts.
Public propertyStops
Gets the gradient stops that comprise the brush.
Public propertyStopsHdr
Gets the high-dynamic-range gradient stops that comprise the brush.
Public propertyTransform
The transform affecting the brush.
Top
Methods
  NameDescription
Public methodStatic memberCreateHdr(ICanvasResourceCreator, CanvasGradientStopHdr)
Initializes a new instance of the CanvasLinearGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, Vector4, Vector4)
Initializes a new instance of the CanvasLinearGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, CanvasGradientStopHdr, CanvasEdgeBehavior, CanvasAlphaMode)
Initializes a new instance of the CanvasLinearGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, CanvasGradientStopHdr, CanvasEdgeBehavior, CanvasAlphaMode, CanvasColorSpace, CanvasColorSpace, CanvasBufferPrecision)
Initializes a new instance of the CanvasLinearGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateRainbow
A convenience for producing a rainbow-colored gradient.
Public methodDispose
Releases all resources used by the CanvasLinearGradientBrush.
Top
Remarks

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

See Also