الطباعة
Declare Function GetDIBits Lib "gdi" (ByVal hDC, ByVal hBitmap,
ByVal nStartScan, ByVal nNumScans, ByVal lpBits As Long, Bitmapinfo As BITMAPINFO_Type, ByVal wUsage)
Declare Function StretchDIBits Lib "gdi" (ByVal hDC, ByVal DestX, ByVal DestY, ByVal wDestWidth, ByVal wDestHeight, ByVal SrcX, ByVal SrcY, ByVal wSrcWidth, ByVal wSrcHeight, ByVal lpBits&, BitsInfo As
BITMAPINFO_Type, ByVal wUsage, ByVal dwRop&)
Declare Function GetDeviceCaps Lib "gdi" (ByVal hDC, ByVal nindex) Declare Function GetWindowRect Lib "user" (ByVal hWnd, IpRect As RectType) Declare Function GetClientRect Lib "user" (ByVal hWnd, IpRect As RectType)
Declare Function GlobalAlloc Lib "kernel" (ByVal wFlags, ByVal IMem&) Declare Function GlobalLock Lib "kernel" (ByVal hMem) As Long Declare Function Global Unlock Lib "kernel" (ByVal hMem)
Declare Function GlobalFree Lib "kernel" (ByVal hMem)
Declare Function CreateCompatibleBitmap Lib "gdi" (ByVal hDC, ByVal nWidth,
ByVal nHeight)
Declare Function DeleteObject Lib "gdi" (ByVal hObject)
Declare Function SelectObject Lib "gdi" (ByVal hDC, ByVal hObject)
Declare Function ClientToScreen Lib "user" (ByVal hWnd, p As PointType) Declare Function LPTODP Lib "gdi" (ByVal hDC, p As PointType, ByVal nCount)
الثوابت التي نستخدمها عند التعامل مع الإجراءات .
Const HORZRES = 8
Const VERTRES = 10
Const SRCCOPY = &HCC0020
Const NEWFRAME = 1
Const BITSPIXEL = 12
Const PLANES = 14
Const BI_RGB = 0
Const BI_RLE8 = 1
Const BI_RLE4 = 2
Const DIB_PAL_COLORS = 1 Const DIB_RGB_COLORS = 0
Const GMEM_MOVEABLE = 2
TAY
ص ٤١٩