THotPDF.RegisterTilingPattern Method
Method summary: THotPDF.RegisterTilingPattern Method
Declaration
function RegisterTilingPattern(BBoxLLx, BBoxLLy, BBoxURx, BBoxURy : Single; XStep, YStep : Single; const Content : AnsiString; Colored : boolean= true): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
BBoxLLxBBoxLLy | Value: RegisterTilingPattern |
BBoxURx, BBoxURy | Finite upper-right coordinates, each greater than its lower-left counterpart |
XStep, BBoxLLy | Value: RegisterTilingPattern |
BBoxURx | Value: RegisterTilingPattern |
BBoxURy | Value: RegisterTilingPatternTrue emits /PaintType 1; False emits /PaintType 2 and takes its tint from the matching page pattern-colour API |
XStep | Value: RegisterTilingPatternTHPDFTilingPatternType |
YStep | Value: RegisterTilingPatternContent |
Return value
Returns a value: AnsiStringSetFillPattern, SetStrokePattern, or their uncoloured RGB, Grey, and CMYK variants
Usage notes
- Call: THotPDF.RegisterTilingPattern
pttConstantSpacingand an identity pattern matrix - Stable
pttConstantSpacingpreserves device-pixel spacing with at most one pixel of cell distortion, whilepttNoDistortionpreserves the cell shape and adjusts individual tile origins pttConstantSpacingFastpreserves device-pixel spacing and permits the renderer to favour faster placement over minimum distortion- Negative steps are valid and repeat cells in the opposite pattern-space direction
- For uncoloured patterns, cell colour operators are ignored and the selected base tint applies to both fill and stroke operations inside the cell
- The renderer isolates each cell path and clips it to
BBox, supports nested pattern resources, and bounds recursion and executed tile count