Click or drag to resize

PdfPattern Class

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.
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.Pdf.ContentPdfContentResource
      SautinSoft.Pdf.Content.PatternsPdfPattern
        SautinSoft.Pdf.Content.PatternsPdfShadingPattern
        SautinSoft.Pdf.Content.PatternsPdfTilingPattern

Namespace: SautinSoft.Pdf.Content.Patterns
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.10.22
Syntax
public abstract class PdfPattern : PdfContentResource

The PdfPattern type exposes the following members.

Properties
 NameDescription
Public propertyPatternType(Required) A code identifying the type of pattern that this PdfPattern describes.
Public propertyTransform(Optional) An array of six numbers specifying the pattern matrix (see 8.7.2, "General Properties of Patterns"). Default value: the identity matrix [1 0 0 1 0 0].
Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also