Class D2D1RadialGradientBrush
Paints an area with a radial gradient.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1RadialGradientBrush : D2D1Brush, IDisposable
Constructors
| Edit this page View SourceD2D1RadialGradientBrush(nint)
Initializes a new instance of the D2D1RadialGradientBrush class.
Declaration
public D2D1RadialGradientBrush(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1RadialGradientBrushGuid
The interface GUID.
Declaration
public static readonly Guid D2D1RadialGradientBrushGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceCenter
Gets or sets the center of the gradient ellipse in the brush's coordinate space.
Declaration
public D2D1Point2F Center { get; set; }
Property Value
| Type | Description |
|---|---|
| D2D1Point2F |
GradientOriginOffset
Gets or sets the offset of the gradient origin relative to the gradient ellipse's center.
Declaration
public D2D1Point2F GradientOriginOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| D2D1Point2F |
RadiusX
Gets or sets the x-radius of the gradient ellipse, in the brush's coordinate space.
Declaration
public float RadiusX { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
RadiusY
Gets or sets the y-radius of the gradient ellipse, in the brush's coordinate space.
Declaration
public float RadiusY { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
| Edit this page View SourceGetGradientStopCollection()
Retrieves the D2D1GradientStopCollection associated with this radial gradient brush object.
Declaration
public D2D1GradientStopCollection GetGradientStopCollection()
Returns
| Type | Description |
|---|---|
| D2D1GradientStopCollection | The D2D1GradientStopCollection object associated with this linear gradient brush object. |