THotPDF.BeginTilingPattern Method
方法摘要: THotPDF.BeginTilingPattern MethodBeginTilingPattern 會建立 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
- THotPDF.RegisterTilingPattern
- THPDFPage.SetFillPattern