procedure RenderPage(DeviceContext: HDC; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| DeviceContext | HDC. 算繪目標裝置內容(螢幕 DC、印表機 DC、記憶體 DC 等) |
| Rotation | TRotation. 算繪時套用的順時針旋轉:ro0、ro90、ro180 或 ro270 |
| Options | TRenderOptions. 控制註解顯示、LCD 文字、灰階等的算繪旗標集合 |
function RenderPage(Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []): TBitmap;
| Rotation | TRotation. 算繪時套用的順時針旋轉 |
| Options | TRenderOptions. 算繪旗標集合 |
procedure RenderPage(Bitmap: TBitmap; Left, Top, Width, Height: Integer; Rotation: TRotation = ro0; Options: TRenderOptions = []);
| Bitmap | TBitmap. 用於算繪頁面的既有點陣圖 |
| Rotation | TRotation. 算繪時套用的順時針旋轉 |
| Options | TRenderOptions. 算繪旗標集合 |
以指定的位置與大小將目前頁面算繪到指定的目的地。提供三種多載:
TBitmap 並算繪到其中。傳回的點陣圖必須由呼叫端釋放TBitmap(不另行配置)背景填色取自 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;