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:
|
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
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. |