Table of Contents

Struct GradientMeshPatch

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Represents a tensor patch with 16 control points, 4 corner colors, and boundary flags. An IGradientMesh is made up of 1 or more gradient mesh patches.
D2D1_GRADIENT_MESH_PATCH

public struct GradientMeshPatch : IEquatable<GradientMeshPatch>
Implements
Inherited Members

Constructors

GradientMeshPatch(Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, Point2Float, ColorRgba128Float, ColorRgba128Float, ColorRgba128Float, ColorRgba128Float, PatchEdgeMode, PatchEdgeMode, PatchEdgeMode, PatchEdgeMode)

Creates a GradientMeshPatch structure that contains the given control points, colors, and boundary flags.

Properties

BottomEdgeMode

Specifies how to render the bottom edge of the mesh.

Color00

The color associated with the control point in column 0 and row 0 of the tensor grid.

Color03

The color associated with the control point in column 0 and row 3 of the tensor grid.

Color30

The color associated with the control point in column 3 and row 0 of the tensor grid.

Color33

The color associated with the control point in column 3 and row 3 of the tensor grid.

LeftEdgeMode

Specifies how to render the left edge of the mesh.

Point00

The coordinate-space location of the control point in column 0 and row 0 of the tensor grid.

Point01

The coordinate-space location of the control point in column 0 and row 1 of the tensor grid.

Point02

The coordinate-space location of the control point in column 0 and row 2 of the tensor grid.

Point03

The coordinate-space location of the control point in column 0 and row 3 of the tensor grid.

Point10

The coordinate-space location of the control point in column 1 and row 0 of the tensor grid.

Point11

The coordinate-space location of the control point in column 1 and row 1 of the tensor grid.

Point12

The coordinate-space location of the control point in column 1 and row 2 of the tensor grid.

Point13

The coordinate-space location of the control point in column 1 and row 3 of the tensor grid.

Point20

The coordinate-space location of the control point in column 2 and row 0 of the tensor grid.

Point21

The coordinate-space location of the control point in column 2 and row 1 of the tensor grid.

Point22

The coordinate-space location of the control point in column 2 and row 2 of the tensor grid.

Point23

The coordinate-space location of the control point in column 2 and row 3 of the tensor grid.

Point30

The coordinate-space location of the control point in column 3 and row 0 of the tensor grid.

Point31

The coordinate-space location of the control point in column 3 and row 1 of the tensor grid.

Point32

The coordinate-space location of the control point in column 3 and row 2 of the tensor grid.

Point33

The coordinate-space location of the control point in column 3 and row 3 of the tensor grid.

RightEdgeMode

Specifies how to render the right edge of the mesh.

TopEdgeMode

Specifies how to render the top edge of the mesh.

Methods

Equals(GradientMeshPatch)
Equals(in GradientMeshPatch)
Equals(object?)
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

GetHashCode()

Operators

operator ==(in GradientMeshPatch, in GradientMeshPatch)
operator !=(in GradientMeshPatch, in GradientMeshPatch)