PdfTriangleMeshShading Class

Definition

A triangle mesh shading: free-form (Type 4) or lattice-form (Type 5), colours given at the vertices.

public sealed class PdfTriangleMeshShading : PdfMeshShading

Remarks

ISO 32000-2 §8.7.4.5.5 (Table 81) and §8.7.4.5.6 (Table 82). Vertices and VertexColors hold the decoded vertices; Triangles three vertex indices per triangle, in the order they are painted. A colour inside a triangle is the linear interpolation of its vertices' colours (of t, then the function, when the shading has one).

Type 4 edge flags: 0 starts a triangle from this vertex and the next two (whose flags are ignored); after a triangle (va, vb, vc), 1 makes (vb, vc, vd) and 2 makes (va, vc, vd). A flag of 3, or 1 or 2 with no triangle before it, skips the vertex with a MeshEdgeFlagInvalid diagnostic. Type 5: the vertices form rows of VerticesPerRow, each cell two triangles (Vi,j, Vi,j+1, Vi+1,j) and (Vi,j+1, Vi+1,j, Vi+1,j+1); an incomplete last row is dropped with MeshLatticeIncomplete.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (6)