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); |