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

    Show / Hide Table of Contents

    GemBox.Pdf.Content.Patterns Namespace

    Contains classes and enumerations that implement PDF patterns and shadings as specified in the PDF Specification ISO 32000-1:2008, section '8.7 Patterns'.

    The base class of all PDF patterns is PdfPattern. PDF patterns can be accessed via the Pattern property of PdfColor.

    The base class of all PDF shadings is PdfShading. PDF shading can be accessed via the Shading property of PdfShadingPattern and PdfShadingContent.

    Classes

    PdfAxialShading

    Type 2 (axial) shadings define a color blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. The shading may optionally be extended beyond either or both endpoints by continuing the boundary colors indefinitely.

    PdfCoonsPatchMeshShading

    Type 6 shadings (Coons patch meshes) are constructed from one or more color patches, each bounded by four cubic Bézier curves.

    PdfFreeTriangleMeshShading

    Type 4 shadings (free-form Gouraud-shaded triangle meshes) are commonly used to represent complex colored and shaded three-dimensional shapes. The area to be shaded is defined by a path composed entirely of triangles. The color at each vertex of the triangles is specified, and a technique known as Gouraud interpolation is used to color the interiors.

    PdfFunctionBasedShading

    In Type 1 (function-based) shadings, the color at every point in the domain is defined by a specified mathematical function. The function need not be smooth or continuous. This type is the most general of the available shading types and is useful for shadings that cannot be adequately described with any of the other types.

    PdfLatticeTriangleMeshShading

    Type 5 shadings (lattice-form Gouraud-shaded triangle meshes) are similar to PdfFreeTriangleMeshShading, but instead of using free-form geometry, their vertices are arranged in a pseudorectangular lattice, which is topologically equivalent to a rectangular grid. The vertices are organized into rows, which need not be geometrically linear.

    PdfMeshShading

    Represents a base class for mesh-based shadings PdfFreeTriangleMeshShading, PdfLatticeTriangleMeshShading, PdfCoonsPatchMeshShading, and PdfTensorPatchMeshShading.

    PdfPattern

    Patterns come in two varieties:

    • Tiling patterns consist of a small graphical figure (called a pattern cell) that is replicated at fixed horizontal and vertical intervals to fill the area to be painted. The graphics objects to use for tiling shall be described by a content stream.
    • Shading patterns define a gradient fill that produces a smooth transition between colors across the area. The color to use shall be specified as a function of position using any of a variety of methods.
    PdfRadialShading

    Type 3 (radial) shadings define a color blend that varies between two circles. Shadings of this type are commonly used to depict three-dimensional spheres and cones.

    PdfShading

    A shading dictionary specifies details of a particular gradient fill, including the type of shading to be used, the geometry of the area to be shaded, and the geometry of the gradient fill.

    PdfShadingPattern

    Shading patterns (PDF 1.3) provide a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition.

    PdfTensorPatchMeshShading

    Type 7 shadings (tensor-product patch meshes) are identical to PdfCoonsPatchMeshShading, except that they are based on a bicubic tensor-product patch defined by 16 control points instead of the 12 control points that define a Coons patch.

    PdfTilingPattern

    A tiling pattern consists of a small graphical figure called a pattern cell. Painting with the pattern replicates the cell at fixed horizontal and vertical intervals to fill an area. The effect is as if the figure were painted on the surface of a clear glass tile, identical copies of which were then laid down in an array covering the area and trimmed to its boundaries. This process is called tiling the area.

    Structs

    PdfCoonsPatchMeshShading.Enumerator

    Enumerates the PdfMeshPatches of a PdfCoonsPatchMeshShading.

    PdfFreeTriangleMeshShading.Enumerator

    Enumerates the PdfMeshTriangles of a PdfFreeTriangleMeshShading.

    PdfLatticeTriangleMeshShading.Enumerator

    Enumerates the PdfMeshTriangles of a PdfLatticeTriangleMeshShading.

    PdfMeshPatch

    Represents a color patch contained in a PdfCoonsPatchMeshShading or PdfTensorPatchMeshShading bounded by four cubic Bézier curves and with four implicit (in PdfCoonsPatchMeshShading) or explicit (in PdfTensorPatchMeshShading) "internal" control points.

    note

    PdfMeshPatch does not contain a public constructor. The only way to access PdfMeshPatch instances is by enumerating PdfCoonsPatchMeshShading or PdfTensorPatchMeshShading.

    PdfMeshTriangle

    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.

    PdfMeshVertex

    Represents an explicitly colored (corner) point of a PdfMeshTriangle or a PdfMeshPatch.

    PdfShadingColor

    Describes the location and color of a transition point in a shading.

    Use this structure to describe the colors in a PdfAxialShading or PdfRadialShading.

    Two PdfShadingColors are converted to a PdfExponentialInterpolationFunction and more than two are converted to a PdfStitchingFunction (stitching two or more PdfExponentialInterpolationFunctions) that is then set to the Function or the Function.

    PdfTensorPatchMeshShading.Enumerator

    Enumerates the PdfMeshPatches of a PdfTensorPatchMeshShading.

    Enums

    PdfMeshSharedEdge

    Represents an edge of the previous PdfMeshTriangle or PdfMeshPatch that is shared with the current triangle or patch.

    PdfPatternType

    Represents types of the PdfPatterns.

    PdfShadingType

    Represents types of the PdfShadings.

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.