l us a
US &
مثال على طبا
فحول بيسيك
كل المرامج - Program Manager
Eile Options Window Help
Word VB Cap Pub
VC BackupAppS QC Pw WF ax EFAX Avb
FM
النظرة رایت
دوس
DN
خروج
HOOKS
MOP
الفصل السادس
Setup تحكم الرسام Icon
Expre Camera leaker Wit BarclockookSysEditCreat VISIO dec SDK
لطبع الصورة
الشكل (٤-٦) طباعة الصور من فيجول بيسيك -۲
المثال يتكون من نافدة واحدة هي التي تظهر في الشكل السابق. وفي قسم الإعلانات فيها، نضع الإعلانات لإجراءات واجهة البرمجة التي نستخدمها، كما يلي:
Declare Function CreateCompatibleDC Lib "GDI" (ByVal hDC As Integer)
As Integer
Declare Function SelectObject Lib "GDI" (ByVal hDC As Integer, ByVal hObject As Integer) As Integer
Declare Function StretchBlt Lib "GDI" (ByVal hDC As Integer, ByVal X As Integer, ByVal Y As Integer, ByVal nWidth As Integer, ByVal nHght As Integer, ByVal hSrcDC As Integer, ByVal XSrc As Integer, ByVal YSrc As Integer, ByVal nSrcWidth As Integer, ByVal nSrcHeight As Integer, ByVal dwRop&) As Integer
Declare Function DeleteDC Lib "GDI" (ByVal hDC As Integer) As Integer
وفي داخل النافذة يوجد أيضاً الإجراء PrintPicture الذي يقوم بطباعة الصورة، كما
يلي:
٣٩٠
ص ٤٢٨