Struct LinearGradientBrushProperties
Contains the starting point and endpoint of the gradient axis for an LinearGradientBrush.
public struct LinearGradientBrushProperties
- Inherited Members
Remarks
Use this method when creating new LinearGradientBrush objects with the CreateLinearGradientBrush method. For convenience, Direct2D provides the D2D1::LinearGradientBrushProperties helper function for creating new LinearGradientBrushProperties structures.
The following illustration shows how a linear gradient changes as you change its start and end points. For the first gradient, the start point is set to (0,0) and the end point to (150, 50); this creates a diagonal gradient that starts at the upper-left corner and extends to the lower-right corner of the area being painted. When you set the start point to (0, 25) and the end point to (150, 25), a horizontal gradient is created. Similarly, setting the start point to (75, 0) and the end point to (75, 50) creates a vertical gradient. Setting the start point to (0, 50) and the end point to (150, 0) creates a diagonal gradient that starts at the lower-left corner and extends to the upper-right corner of the area being painted.
Fields
EndPoint
No documentation.
public RawVector2 EndPoint
Field Value
- RawVector2
StartPoint
No documentation.
public RawVector2 StartPoint
Field Value
- RawVector2