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
point0Point2FloatThe coordinate-space location of the control point at position 0.
point1Point2FloatThe coordinate-space location of the control point at position 1.
point2Point2FloatThe coordinate-space location of the control point at position 2.
point3Point2FloatThe coordinate-space location of the control point at position 3.
point4Point2FloatThe coordinate-space location of the control point at position 4.
point5Point2FloatThe coordinate-space location of the control point at position 5.
point6Point2FloatThe coordinate-space location of the control point at position 6.
point7Point2FloatThe coordinate-space location of the control point at position 7.
point8Point2FloatThe coordinate-space location of the control point at position 8.
point9Point2FloatThe coordinate-space location of the control point at position 9.
point10Point2FloatThe coordinate-space location of the control point at position 10.
point11Point2FloatThe coordinate-space location of the control point at position 11.
color0ColorRgba128FloatThe color associated with the control point at position 0.
color1ColorRgba128FloatThe color associated with the control point at position 1.
color2ColorRgba128FloatThe color associated with the control point at position 2.
color3ColorRgba128FloatThe color associated with the control point at position 3.
topEdgeModePatchEdgeModeSpecifies how to render the top edge of the mesh.
leftEdgeModePatchEdgeModeSpecifies how to render the left edge of the mesh.
bottomEdgeModePatchEdgeModeSpecifies how to render the bottom edge of the mesh.
rightEdgeModePatchEdgeModeSpecifies how to render the right edge of the mesh.