RenderPageTileToStream
Rendering, tiled rendering, streams
Description
Renders an arbitrary device-pixel rectangle from one page and writes the encoded raster tile to Target
Overlap expands the requested rectangle on every available edge while clipping it to the page, which supports seam-free filtering and later cropping to the core rectangle
Syntax
Function RenderPageTileToStream(DPI: Double; Page, PixelLeft, PixelTop, PixelWidth, PixelHeight, Overlap, Options, BackgroundMode: Integer; BackgroundColor: Cardinal; Target: TStream): Integer;Parameters
| PixelLeft, PixelTop | Zero-based tile origin in rendered device pixels |
|---|---|
| PixelWidth, PixelHeight | Positive core tile dimensions before overlap |
| Overlap | Extra pixels requested on each available edge |
| Options | Raster format constant for BMP, JPEG, PNG, GIF, TIFF or G4 TIFF |
| BackgroundMode | PDF_TILE_BACKGROUND_WHITE, PDF_TILE_BACKGROUND_TRANSPARENT or PDF_TILE_BACKGROUND_CUSTOM |
| BackgroundColor | Custom fill or PNG transparency-key colour |
Return values
1 on success, otherwise 0 with details in LastRenderError