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.
public abstract class PdfPattern : PdfContentResource
Public MustInherit Class PdfPattern
Inherits PdfContentResource
- Inheritance:
- System.ObjectPdfPattern
- Derived
Properties
IsColored
Gets a value indicating whether the PdfPattern is colored.
Property Value
- System.Boolean
true if the PdfPattern is colored; otherwise, false.
PatternType
(Required) A code identifying the type of pattern that this PdfPattern describes.
public PdfPatternType PatternType { get; }
Public ReadOnly Property PatternType As PdfPatternType
Property Value
A code identifying the type of pattern that this PdfPattern describes.
See Also
Transform
(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].
Property Value
An array of six numbers specifying the pattern matrix.
See Also
Inherited Properties
Document | Gets the PdfDocument associated with this PdfContentResource or null if no PdfDocument is associated with this PdfContentResource. (Inherited from PdfContentResource) |
Metadata | (Optional; PDF 1.4) A metadata stream containing metadata for the component. (Inherited from PdfObject) |