Declare Function BitBlt Lib "gdi32.dll" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
hDestDC | The device context of the target object. |
x | The x coordinate to use as the upper-left corner of the graphic chunk in the target. |
y | The y coordinate to use as the upper-left corner of the graphic chunk in the target. |
nWidth | The width of the graphic chunk in pixels. |
nHeight | The height of the graphic chunk in pixels. |
hSrcDC | The device context of the source object. |
xSrc | The x coordinate of the upper-left corner of the graphic chunk in the source. |
ySrc | The y coordinate of the upper-left corner of the graphic chunk in the source. |
dwRop | A Blt flag telling how to transfer the image. |
'Copy the upper-left corner from one picture to another
x = BitBlt(picTarget.hdc, 0, 0, 32, 32, picSource.hdc, 0, 0, SRCCOPY)
picTarget.Refresh
Paul Kuliniewicz
E-mail: Borg953@aol.com
All material presented on these pages is Copyright © Paul Kuliniewicz, except for other copyrighted material.
http://members.aol.com/Borg953/api/b.html