Method FromCoonsPatch
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
FromCoonsPatch(Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, ColorRgba128Float, ColorRgba128Float, ColorRgba128Float, ColorRgba128Float, PatchEdgeMode, PatchEdgeMode, PatchEdgeMode, PatchEdgeMode)
Creates a GradientMeshPatch from a given Coons patch description. https://docs.microsoft.com/en-us/windows/win32/api/d2d1_3helper/nf-d2d1_3helper-gradientmeshpatchfromcoonspatch
public static GradientMeshPatch FromCoonsPatch(Point2Float point0, Point2Float point1, Point2Float point2, Point2Float point3, Point2Float point4, Point2Float point5, Point2Float point6, Point2Float point7, Point2Float point8, Point2Float point9, Point2Float point10, Point2Float point11, ColorRgba128Float color0, ColorRgba128Float color1, ColorRgba128Float color2, ColorRgba128Float color3, PatchEdgeMode topEdgeMode, PatchEdgeMode leftEdgeMode, PatchEdgeMode bottomEdgeMode, PatchEdgeMode rightEdgeMode)
Parameters
point0
Point2FloatThe coordinate-space location of the control point at position 0.
point1
Point2FloatThe coordinate-space location of the control point at position 1.
point2
Point2FloatThe coordinate-space location of the control point at position 2.
point3
Point2FloatThe coordinate-space location of the control point at position 3.
point4
Point2FloatThe coordinate-space location of the control point at position 4.
point5
Point2FloatThe coordinate-space location of the control point at position 5.
point6
Point2FloatThe coordinate-space location of the control point at position 6.
point7
Point2FloatThe coordinate-space location of the control point at position 7.
point8
Point2FloatThe coordinate-space location of the control point at position 8.
point9
Point2FloatThe coordinate-space location of the control point at position 9.
point10
Point2FloatThe coordinate-space location of the control point at position 10.
point11
Point2FloatThe coordinate-space location of the control point at position 11.
color0
ColorRgba128FloatThe color associated with the control point at position 0.
color1
ColorRgba128FloatThe color associated with the control point at position 1.
color2
ColorRgba128FloatThe color associated with the control point at position 2.
color3
ColorRgba128FloatThe color associated with the control point at position 3.
topEdgeMode
PatchEdgeModeSpecifies how to render the top edge of the mesh.
leftEdgeMode
PatchEdgeModeSpecifies how to render the left edge of the mesh.
bottomEdgeMode
PatchEdgeModeSpecifies how to render the bottom edge of the mesh.
rightEdgeMode
PatchEdgeModeSpecifies how to render the right edge of the mesh.