procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| DeviceContext | HDC. Target device context to render into (screen DC, printer DC, memory DC, etc.). |
| Rotation | TRotation. Clockwise rotation to apply when rendering: ro0, ro90, ro180, or ro270. |
| Options | TRenderOptions. Set of rendering flags controlling annotation display, LCD text, grayscale, etc. |
function RenderPage(Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap;
| Rotation | TRotation. Clockwise rotation to apply when rendering. |
| Options | TRenderOptions. Set of rendering flags. |
procedure RenderPage(Bitmap: TBitmap; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| Bitmap | TBitmap. An existing bitmap to render the page into. |
| Rotation | TRotation. Clockwise rotation to apply when rendering. |
| Options | TRenderOptions. Set of rendering flags. |
صفحهٔ فعلی را در موقعیت و اندازهٔ دادهشده به مقصد مشخصشده رندر میکند. سه overload در دسترس است:
TBitmap and renders into it. The caller must free the returned bitmap.TBitmap (no allocation).رنگ پر کردن پسزمینه از PageColor گرفته میشود. برای رندر کاشیشده با وضوح بالا از 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;