procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| DeviceContext | HDC. Docelowy kontekst urządzenia do renderowania (DC ekranu, DC drukarki, DC pamięci itd.) |
| Rotation | TRotation. Obrót zgodny z ruchem wskazówek zegara stosowany podczas renderowania: ro0, ro90, ro180 albo ro270 |
| Options | TRenderOptions. Zestaw flag renderowania sterujących wyświetlaniem adnotacji, tekstu LCD, skali szarości itd. |
function RenderPage(Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap;
| Rotation | TRotation. Obrót zgodny z ruchem wskazówek zegara stosowany podczas renderowania |
| Options | TRenderOptions. Zestaw flag renderowania |
procedure RenderPage(Bitmap: TBitmap; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| Bitmap | TBitmap. Istniejąca bitmapa, do której ma zostać wyrenderowana strona |
| Rotation | TRotation. Clockwise rotation to apply when rendering. |
| Options | TRenderOptions. Set of rendering flags. |
Renderuje bieżącą stronę do wskazanego miejsca docelowego, w podanej pozycji i rozmiarze. Dostępne są trzy przeciążenia
TBitmap and renders into it. The caller must free the returned bitmap.TBitmap (no allocation).The background fill color is taken from PageColor. For tiled high-resolution rendering, use RenderTile.
// Render current page to a 600x800 bitmap
var Bmp: TBitmap;
begin
Bmp := PdfView.RenderPage(0, 0, 600, 800);
try
Bmp.SaveToFile('page.bmp');
finally
Bmp.Free;
end;
end;