DARenderPageToVariant
直接存取功能、描繪與列印
描述
把指定文件的指定頁面描繪成影像,並以位元組陣列 Variant 傳回影像資料
描繪預設使用 GDI+ 系統,Windows XP 之後的系統都有提供
呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。
呼叫函式前請查看語法、參數和傳回值。程式碼區塊保留原始形式,便於範例直接複製使用。
functions.
語法
ActiveX
Function PDFlib::DARenderPageToVariant(FileHandle As Long, PageRef As Long, Options As Long, DPI As Double) As Variant參數
FileHandle
由 DAOpenFile 或 DAOpenFileReadOnly 傳回的控制代碼
DAOpenFromStream 函式
PageRef
由 DAFindPage 或 DANewPage 函式傳回的頁面參照
Options
0 = BMP output
1 = JPEG output
2 = WMF output
3 = EMF output
4 = EPS output
5 = PNG output
6 = GIF output
7 = TIFF output
8 = EMF+ output
9 = HTML5 output
10 = G4 TIFF output
DPI
描繪頁面時使用的 DPI。超過 300 會造成過多的記憶體用量