DADrawCapturedPage

وظائف الوصول المباشر، تخطيط الصفحة

الوصف

يرسم صفحة التُقطت سلفًا باستخدام الدالة DrawCapturedPage على الصفحة المحددة. ويجب أن تكون الصفحة الأصلية ملتقطة من المستند نفسه (بنفس FileHandle)

الصيغة

Delphi

Function TPDFlib.DADrawCapturedPage(FileHandle, DACaptureID, DestPageRef: Integer; PntLeft, PntBottom, PntWidth, PntHeight: Double): Integer;

ActiveX

Function PDFlib::DADrawCapturedPage(FileHandle As Long, DACaptureID As Long, DestPageRef As Long, PntLeft As Double, PntBottom As Double, PntWidth As Double, PntHeight As Double) As Long

DLL

int DLDADrawCapturedPage(int InstanceID, int FileHandle, int DACaptureID, int DestPageRef, double PntLeft, double PntBottom, double PntWidth, double PntHeight);

المعاملات

FileHandleمقبض تُرجعه الدالات DAOpenFile أو DAOpenFileReadOnly أو DAOpenFromStream
DACaptureIDلم يُنشأ لوح رسم (canvas)
DestPageRefمرجع صفحة تُرجعه الدالتان DAFindPage أو DANewPage
PntLeftالإحداثي الأفقي للحافة اليسرى لمستطيل الوجهة، مقاسًا بالنقاط من الحافة اليسرى للصفحة
PntBottomالإحداثي الرأسي للحافة السفلية لمستطيل الوجهة، مقاسًا بالنقاط من الحافة السفلية للصفحة
PntWidthعرض مستطيل الوجهة مقاسًا بالنقاط
PntHeightارتفاع مستطيل الوجهة مقاسًا بالنقاط

قيم الإرجاع

0كانت قيم FileHandle أو PageRef أو DACaptureID المحددة غير صالحة
1رُسمت الصفحة الملتقطة بنجاح double PntWidth, double PntHeight);