[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.LinearGradientBrush

Class LinearGradientBrush

Namespace
GrapeCity.Documents.DX.Direct2D
Assembly
GcDocs.DX.Windows.dll

ID2D1LinearGradientBrush

[Guid("2cd906ab-12e2-11dc-9fed-001143a055f9")]
public class LinearGradientBrush : Brush, IDisposable, IUnknown
Inheritance
object
LinearGradientBrush
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

LinearGradientBrush(IntPtr)

Initializes a new instance of the LinearGradientBrush class.

public LinearGradientBrush(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, LinearGradientBrushProperties, GradientStopCollection)

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)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

linearGradientBrushProperties LinearGradientBrushProperties

The start and end points of the gradient.

gradientStopCollection GradientStopCollection

A collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.

Returns

LinearGradientBrush

Create(RenderTarget, LinearGradientBrushProperties, BrushProperties?, GradientStopCollection)

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)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

linearGradientBrushProperties LinearGradientBrushProperties

The 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 GradientStopCollection

A collection of GradientStop structures that describe the colors in the brush's gradient and their locations along the gradient line.

Returns

LinearGradientBrush

GetEndPoint()

D2D_POINT_2F ID2D1LinearGradientBrush::GetEndPoint()

public Point2F GetEndPoint()

Returns

Point2F

GetGradientStopCollection()

void ID2D1LinearGradientBrush::GetGradientStopCollection([Out] ID2D1GradientStopCollection** gradientStopCollection)

public GradientStopCollection GetGradientStopCollection()

Returns

GradientStopCollection

GetStartPoint()

D2D_POINT_2F ID2D1LinearGradientBrush::GetStartPoint()

public Point2F GetStartPoint()

Returns

Point2F

SetEndPoint(Point2F)

void ID2D1LinearGradientBrush::SetEndPoint([In] D2D_POINT_2F endPoint)

public void SetEndPoint(Point2F endPoint)

Parameters

endPoint Point2F

SetStartPoint(Point2F)

void ID2D1LinearGradientBrush::SetStartPoint([In] D2D_POINT_2F startPoint)

public void SetStartPoint(Point2F startPoint)

Parameters

startPoint Point2F

Operators

explicit operator LinearGradientBrush(IntPtr)

Performs an explicit conversion from System.IntPtr to LinearGradientBrush.

public static explicit operator LinearGradientBrush(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

LinearGradientBrush