Click or drag to resize

PdfTilingPattern Class

Represents the tiling pattern.
Inheritance Hierarchy
SystemObject
  Patagames.Pdf.Net.PatternsPdfPattern
    Patagames.Pdf.Net.PatternsPdfTilingPattern

Namespace: Patagames.Pdf.Net.Patterns
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.89.2704
Syntax
public class PdfTilingPattern : PdfPattern

The PdfTilingPattern type exposes the following members.

Constructors
 NameDescription
Public methodPdfTilingPattern Create ne tilinig pattern object.
Top
Properties
 NameDescription
Public propertyBoundingBox Gets or sets a rectangle in the pattern coordinate system giving the coordinates of the left, bottom, right, and top edges, respectively, of the pattern cell’s bounding box. These boundaries are used to clip the pattern cell.
Public propertyColored Gets or sets flag indicating whether the given pattern is colored or not.
Public propertyContent Gets the collection of the page objects that represents the pattern cell.
Public propertyStep Gets or sets the desired horizontal and vertical spacing between pattern cells, measured in the pattern coordinate system.
Public propertyStream Gets the internal pattern object.
Public propertyTilingType Gets or sets a code that controls adjustments to the spacing of tiles relative to the device pixel grid.
Top
Methods
 NameDescription
Public methodCalcBoundingBox Calculate bounding box
Public methodGenerateContent Generate content of this pattern object.
Top
Remarks

Colored tiling pattern. The pattern's content stream specifies the colors used to paint the pattern cell. When the content stream begins execution, the current color is the one that was initially in effect in the pattern's parent content stream.

Uncolored tiling pattern. The pattern’s content stream does not specify any color information. Instead, the entire pattern cell is painted with a separately specified color each time the pattern is used. Essentially, the content stream describes a stencil through which the current color is to be poured. The content stream must not invoke operators that specify colors or other color-related parameters in the graphics state; otherwise, an error occurs. The content stream may paint an image mask, however, since it does not specify any color information.

Note that Step may differ from the dimensions of the pattern cell implied by the BoundingBox property. This allows tiling with irregularly shaped figures. Width and Height may be either positive or negative but not zero.

A pattern’s appearance is described with respect to its own internal coordinate system. Every pattern has a Matrix property, a transformation matrix that maps the pattern’s internal coordinate system to the default coordinate system of the pattern's parent content stream (the content stream in which the pattern is defined as a resource). The concatenation of the Matrix with that of the parent content stream establishes the pattern coordinate space, within which all graphics objects in the pattern are interpreted.

See Also