Method CreateGradientMesh
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
CreateGradientMesh(IDeviceContext, IReadOnlyList<GradientMeshPatch>)
Creates a new IGradientMesh instance using the given array of patches.
public static IGradientMesh CreateGradientMesh(this IDeviceContext deviceContext, IReadOnlyList<GradientMeshPatch> patches)
Parameters
deviceContextIDeviceContextpatchesIReadOnlyList<GradientMeshPatch>A pointer to the array containing the patches to be used in this mesh.
Returns
- IGradientMesh
The new gradient mesh.