[]
ID2D1LinearGradientBrush
[Guid("2cd906ab-12e2-11dc-9fed-001143a055f9")]
public class LinearGradientBrush : Brush, IDisposable, IUnknown
Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Creates an LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, GradientStopCollection gradientStopCollection)
renderTarget
RenderTargetan instance of RenderTarget
linearGradientBrushProperties
LinearGradientBrushPropertiesThe start and end points of the gradient.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.
Creates an LinearGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.
public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)
renderTarget
RenderTargetan instance of RenderTarget
linearGradientBrushProperties
LinearGradientBrushPropertiesThe start and end points of the gradient.
brushProperties
BrushProperties?The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation.
gradientStopCollection
GradientStopCollectionA collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.
D2D_POINT_2F ID2D1LinearGradientBrush::GetEndPoint()
public Point2F GetEndPoint()
void ID2D1LinearGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection)
public GradientStopCollection GetGradientStopCollection()
D2D_POINT_2F ID2D1LinearGradientBrush::GetStartPoint()
public Point2F GetStartPoint()
void ID2D1LinearGradientBrush::SetEndPoint([In] D2D_POINT_2F endPoint)
public void SetEndPoint(Point2F endPoint)
endPoint
Point2Fvoid ID2D1LinearGradientBrush::SetStartPoint([In] D2D_POINT_2F startPoint)
public void SetStartPoint(Point2F startPoint)
startPoint
Point2FPerforms an explicit conversion from System.IntPtr to LinearGradientBrush.
public static explicit operator LinearGradientBrush(IntPtr nativePointer)
nativePointer
System.IntPtr