Click or drag to resize
CanvasRadialGradientBrush Class
A brush used to paint a radial gradient.
Inheritance Hierarchy
SystemObject
  Microsoft.Graphics.Canvas.BrushesCanvasRadialGradientBrush

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

The CanvasRadialGradientBrush type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAlphaMode
Specifies the treatment of alpha.
Public propertyBufferPrecision
Specifies the precision used for computation.
Public propertyCenter
Specifies the center of the brush's radial gradient
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 propertyOpacity
The opacity affecting the brush.
Public propertyOriginOffset
Specifies a displacement from Center, used to form the brush's radial gradient.
Public propertyPostInterpolationSpace
Specifies the color space to be used before interpolation.
Public propertyPreInterpolationSpace
Specifies the color space to be used after interpolation.
Public propertyRadiusX
Specifies the horizontal radius of the brush's radial gradient.
Public propertyRadiusY
Specifies the vertical radius of the brush's radial gradient.
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 CanvasRadialGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, Vector4, Vector4)
Initializes a new instance of the CanvasRadialGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, CanvasGradientStopHdr, CanvasEdgeBehavior, CanvasAlphaMode)
Initializes a new instance of the CanvasRadialGradientBrush class using high-dynamic-range colors.
Public methodStatic memberCreateHdr(ICanvasResourceCreator, CanvasGradientStopHdr, CanvasEdgeBehavior, CanvasAlphaMode, CanvasColorSpace, CanvasColorSpace, CanvasBufferPrecision)
Initializes a new instance of the CanvasRadialGradientBrush 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 CanvasRadialGradientBrush.
Top
Remarks

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

See Also