THotPDF.BeginTilingPattern Method

BeginTilingPattern は、型付き描画ヘルパーでタイリングパターンのセルを構成するための THPDFTilingPatternBuilder を作成します

宣言

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;

関連 API