function RenderPageWithMatrix(Width, Height: Integer; const Matrix: FS_MATRIX; const Clip: TPdfRectangle; Options: TRenderOptions = []; Color: TColor = clWhite): TBitmap;
| Width, Height | Integer. Size of the destination bitmap in pixels |
| Matrix | FS_MATRIX. Transform applied to the page before rasterising, in PDF matrix order (a, b, c, d, e, f) |
| Clip | TPdfRectangle. Clip rectangle in destination pixels; content outside it is not painted |
| Options | TRenderOptions. Set of TRenderOption flags controlling rendering quality and behaviour |
| Color | TColor. Background fill applied before rendering Defaults to clWhite |
| Result | TBitmap. A newly created bitmap the caller owns and must free |
procedure RenderPageWithMatrix(Bitmap: TBitmap; Width, Height: Integer; const Matrix: FS_MATRIX; const Clip: TPdfRectangle; Options: TRenderOptions = []; Color: TColor = clWhite);
| Bitmap | TBitmap. An existing bitmap to render into. The caller creates and frees it |
| Width, Height | Integer. Size of the destination area in pixels |
| Matrix | FS_MATRIX. Transform applied to the page |
| Clip | TPdfRectangle. Clip rectangle in destination pixels |
| Options | TRenderOptions. Rendering flags |
| Color | TColor. Background fill applied before rendering |
Where RenderPage offers a rectangle and one of four quarter-turn rotations, this exposes the full transform PDFium renders with: any scale, any rotation angle, shear, mirroring or a combination
The clip rectangle is applied in destination space, which makes it the natural way to repaint one damaged region of a zoomed view without re-rendering the whole page
The matrix maps PDF page units into destination pixels. An unrotated fit-to-width render is (Width / PageWidth, 0, 0, Height / PageHeight, 0, 0); mirroring negates a or d and shifts the corresponding translation