[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.RadialGradientBrush

Class RadialGradientBrush

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

ID2D1RadialGradientBrush

[Guid("2cd906ac-12e2-11dc-9fed-001143a055f9")]
public class RadialGradientBrush : Brush, IDisposable, IUnknown
Inheritance
object
RadialGradientBrush
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

RadialGradientBrush(IntPtr)

Initializes a new instance of the RadialGradientBrush class.

public RadialGradientBrush(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Methods

Create(RenderTarget, RadialGradientBrushProperties, BrushProperties, GradientStopCollection)

Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties brushProperties, GradientStopCollection gradientStopCollection)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

radialGradientBrushProperties RadialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's 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.

Returns

RadialGradientBrush

Create(RenderTarget, RadialGradientBrushProperties, GradientStopCollection)

Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

public static RadialGradientBrush Create(RenderTarget renderTarget, RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

radialGradientBrushProperties RadialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's gradient.

gradientStopCollection GradientStopCollection

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

Returns

RadialGradientBrush

Create(RenderTarget, ref RadialGradientBrushProperties, GradientStopCollection)

Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

[CLSCompliant(false)]
public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, GradientStopCollection gradientStopCollection)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

radialGradientBrushProperties RadialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's gradient.

gradientStopCollection GradientStopCollection

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

Returns

RadialGradientBrush

Create(RenderTarget, ref RadialGradientBrushProperties, BrushProperties?, GradientStopCollection)

Creates an RadialGradientBrush that contains the specified gradient stops and has the specified transform and base opacity.

public static RadialGradientBrush Create(RenderTarget renderTarget, ref RadialGradientBrushProperties radialGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)

Parameters

renderTarget RenderTarget

an instance of RenderTarget

radialGradientBrushProperties RadialGradientBrushProperties

The center, gradient origin offset, and x-radius and y-radius of the brush's 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.

Returns

RadialGradientBrush

GetCenter()

D2D_POINT_2F ID2D1RadialGradientBrush::GetCenter()

public Point2F GetCenter()

Returns

Point2F

GetGradientOriginOffset()

D2D_POINT_2F ID2D1RadialGradientBrush::GetGradientOriginOffset()

public Point2F GetGradientOriginOffset()

Returns

Point2F

GetGradientStopCollection()

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

public GradientStopCollection GetGradientStopCollection()

Returns

GradientStopCollection

GetRadiusX()

float ID2D1RadialGradientBrush::GetRadiusX()

public float GetRadiusX()

Returns

float

GetRadiusY()

float ID2D1RadialGradientBrush::GetRadiusY()

public float GetRadiusY()

Returns

float

SetCenter(Point2F)

void ID2D1RadialGradientBrush::SetCenter([In] D2D_POINT_2F center)

public void SetCenter(Point2F center)

Parameters

center Point2F

SetGradientOriginOffset(Point2F)

void ID2D1RadialGradientBrush::SetGradientOriginOffset([In] D2D_POINT_2F gradientOriginOffset)

public void SetGradientOriginOffset(Point2F gradientOriginOffset)

Parameters

gradientOriginOffset Point2F

SetRadiusX(float)

void ID2D1RadialGradientBrush::SetRadiusX([In] float radiusX)

public void SetRadiusX(float radiusX)

Parameters

radiusX float

SetRadiusY(float)

void ID2D1RadialGradientBrush::SetRadiusY([In] float radiusY)

public void SetRadiusY(float radiusY)

Parameters

radiusY float

Operators

explicit operator RadialGradientBrush(IntPtr)

Performs an explicit conversion from System.IntPtr to RadialGradientBrush.

public static explicit operator RadialGradientBrush(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

RadialGradientBrush