RenderPageTilesToFiles

Rendering, parallel processing, tiled rendering

Description

Splits one rendered page into an exact device-pixel grid, prewarms one parsed display list, and writes the remaining tiles through up to MaxWorkers concurrent workers

The pattern accepts %x for the zero-based column, %y for the zero-based row and %i for the row-major tile index

Syntax

Function RenderPageTilesToFiles(DPI: Double; Page, TileWidth, TileHeight, Overlap, Options, BackgroundMode: Integer; BackgroundColor: Cardinal; Const OutputPattern: WideString; MaxWorkers: Integer): Integer;

Remarks

A zero worker count selects the processor count on supported Delphi versions, while older compilers and FPC use the deterministic serial path

Return value

The number of tile files written successfully