THotPDF.RegisterTilingPattern Method

Registers a reusable coloured or uncoloured tiling pattern and returns its page resource name

Declaration

function RegisterTilingPattern(BBoxLLx, BBoxLLy, BBoxURx,
  BBoxURy: Single; XStep, YStep: Single; const Content: AnsiString;
  Colored: boolean= True): AnsiString; overload;

function RegisterTilingPattern(BBoxLLx, BBoxLLy, BBoxURx,
  BBoxURy: Single; XStep, YStep: Single; const Content: AnsiString;
  Colored: boolean; TilingType: THPDFTilingPatternType;
  const PatternMatrix: THPDFAffineMatrix): AnsiString; overload;

Unit

HPDFDoc

Parameters

NamePurpose
BBoxLLx, BBoxLLyFinite lower-left coordinates of the pattern cell bounding box
BBoxURx, BBoxURyFinite upper-right coordinates, each greater than its lower-left counterpart
XStep, YStepFinite non-zero signed distances between adjacent pattern cells
ContentPDF content operators executed independently inside every pattern cell
ColoredTrue emits /PaintType 1; False emits /PaintType 2 and takes its tint from the matching page pattern-colour API
TilingTypeSelects constant spacing, no cell distortion, or faster constant spacing through THPDFTilingPatternType
PatternMatrixFinite invertible THPDFAffineMatrix mapping pattern coordinates into the parent content stream's default coordinate system

Return value

Returns the stable resource name used by SetFillPattern, SetStrokePattern, or their uncoloured RGB, Gray, and CMYK variants

Usage notes

Related APIs