THotPDF.BeginTilingPattern Method
BeginTilingPattern creates a THPDFTilingPatternBuilder for composing a tiling pattern cell with typed drawing helpers
Declaration
function BeginTilingPattern(BBoxLLx, BBoxLLy, BBoxURx, BBoxURy: Single; XStep, YStep: Single; Colored: boolean= True): THPDFTilingPatternBuilder;
Usage
Call builder methods inherited from THPDFContentBuilder, then call EndPattern to register the tile content and receive the pattern resource name
Paint with the returned resource using THPDFPage.SetFillPattern or THPDFPage.SetStrokePattern
Builder := PDF.BeginTilingPattern(0, 0, 10, 10, 10, 10, True);
try
Builder.SetFillRGB(0.85, 0.85, 0.85);
Builder.DrawRectangle(0, 0, 10, 10);
Builder.Fill;
PatternName := Builder.EndPattern;
finally
Builder.Free;
end;