Class D2D1LinearGradientBrush
Paints an area with a linear gradient.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D2D1
Assembly: JeremyAnsel.DirectX.D2D1.dll
Syntax
[SecurityCritical]
public class D2D1LinearGradientBrush : D2D1Brush, IDisposable
Constructors
| Edit this page View SourceD2D1LinearGradientBrush(nint)
Initializes a new instance of the D2D1LinearGradientBrush class.
Declaration
public D2D1LinearGradientBrush(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD2D1LinearGradientBrushGuid
The interface GUID.
Declaration
public static readonly Guid D2D1LinearGradientBrushGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Properties
| Edit this page View SourceEndPoint
Gets or sets the ending coordinates of the linear gradient in the brush's coordinate space.
Declaration
public D2D1Point2F EndPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| D2D1Point2F |
StartPoint
Gets or sets the starting coordinates of the linear gradient in the brush's coordinate space.
Declaration
public D2D1Point2F StartPoint { get; set; }
Property Value
| Type | Description |
|---|---|
| D2D1Point2F |
Methods
| Edit this page View SourceGetGradientStopCollection()
Retrieves the D2D1GradientStopCollection associated with this linear gradient brush.
Declaration
public D2D1GradientStopCollection GetGradientStopCollection()
Returns
| Type | Description |
|---|---|
| D2D1GradientStopCollection | The D2D1GradientStopCollection object associated with this linear gradient brush object. |