Table of Contents

Class GradientMesh

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Guid("f292e401-c050-4cde-83d7-04962d3b23c2")]
public class GradientMesh : Resource
Inheritance
GradientMesh
Inherited Members

Constructors

GradientMesh(DeviceContext2, GradientMeshPatch[], int)

Initializes a new instance of the GradientMesh.

public GradientMesh(DeviceContext2 context2, GradientMeshPatch[] atchesRef, int patchesCount)

Parameters

context2 DeviceContext2
atchesRef GradientMeshPatch[]
patchesCount int

GradientMesh(nint)

public GradientMesh(nint nativePtr)

Parameters

nativePtr nint

Properties

PatchCount

Returns the number of patches that make up this gradient mesh.

public int PatchCount { get; }

Property Value

int

Methods

GetPatches(int, GradientMeshPatch[], int)

Returns a subset of the patches that make up this gradient mesh.

public void GetPatches(int startIndex, GradientMeshPatch[] atchesRef, int patchesCount)

Parameters

startIndex int

Index of the first patch to return.

atchesRef GradientMeshPatch[]

A reference to the array to be filled with the patch data.

patchesCount int

The number of patches to be returned.

Operators

explicit operator GradientMesh(nint)

public static explicit operator GradientMesh(nint nativePtr)

Parameters

nativePtr nint

Returns

GradientMesh