GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfMeshTriangle Struct

    Namespace:
    GemBox.Pdf.Content.Patterns
    Assembly:
    GemBox.Pdf.dll

    Represents a triangle contained in a PdfFreeTriangleMeshShading or PdfLatticeTriangleMeshShading.

    note

    PdfMeshTriangle does not contain a public constructor. The only way to access PdfMeshTriangle instances is by enumerating PdfFreeTriangleMeshShading or PdfLatticeTriangleMeshShading.

    • C#
    • VB.NET
    public struct PdfMeshTriangle
    Public Structure PdfMeshTriangle

    Properties

    SharedEdge

    Gets the edge of the previous triangle that is shared with this PdfMeshTriangle.

    • C#
    • VB.NET
    public readonly PdfMeshSharedEdge SharedEdge { get; }
    Public ReadOnly Property SharedEdge As PdfMeshSharedEdge
    Property Value
    PdfMeshSharedEdge

    The edge of the previous triangle that is shared with this PdfMeshTriangle.

    Vertex0

    Gets the first vertex of this PdfMeshTriangle.

    • C#
    • VB.NET
    public readonly PdfMeshVertex Vertex0 { get; }
    Public ReadOnly Property Vertex0 As PdfMeshVertex
    Property Value
    PdfMeshVertex

    The first vertex of this PdfMeshTriangle.

    Exceptions
    System.ArgumentException

    The Function entry is set and the IsColorParametric property of the value is false or the Function entry is not set and the IsColorParametric property of the value is true.

    System.ArgumentException

    The Space of the Color of the value is not equal to the shading's ColorSpace.

    Vertex1

    Gets the second vertex of this PdfMeshTriangle.

    • C#
    • VB.NET
    public readonly PdfMeshVertex Vertex1 { get; }
    Public ReadOnly Property Vertex1 As PdfMeshVertex
    Property Value
    PdfMeshVertex

    The second vertex of this PdfMeshTriangle.

    Exceptions
    System.ArgumentException

    The Function entry is set and the IsColorParametric property of the value is false or the Function entry is not set and the IsColorParametric property of the value is true.

    System.ArgumentException

    The Space of the Color of the value is not equal to the shading's ColorSpace.

    Vertex2

    Gets the third vertex of this PdfMeshTriangle.

    • C#
    • VB.NET
    public readonly PdfMeshVertex Vertex2 { get; }
    Public ReadOnly Property Vertex2 As PdfMeshVertex
    Property Value
    PdfMeshVertex

    The third vertex of this PdfMeshTriangle.

    Exceptions
    System.ArgumentException

    The Function entry is set and the IsColorParametric property of the value is false or the Function entry is not set and the IsColorParametric property of the value is true.

    System.ArgumentException

    The Space of the Color of the value is not equal to the shading's ColorSpace.

    Methods

    ToString()

    Returns a System.String that represents this PdfMeshTriangle instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this PdfMeshTriangle instance.

    Overrides
    System.ValueType.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    See Also

    PDF Specification ISO 32000-1:2008, section '8.7.4.5.5 Type 4 Shadings (Free-Form Gouraud-Shaded Triangle Meshes)'
    PDF Specification ISO 32000-1:2008, section '8.7.4.5.6 Type 5 Shadings (Lattice-Form Gouraud-Shaded Triangle Meshes)'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.