No problems Alt255
The answer to do it :
Private Declare Function BitBlt Lib "gdi32" (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
Const cWidth = 361 'Sprite width
Const cHeight = 416 'Sprite height
Const cMidX = 181 'Central horizontal point of sprite
Const cMidY = 233 'Cebtral vertical point of sprite
Private Sub PicDest_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'If Working Then Exit Sub 'Prevent multiple-redraws causing stack overflows
'Working = True
With PicDest
.Cls 'Clear old image and draw new one
PicDest.PaintPicture PicSrce, X - cMidX, Y - cMidY, cWidth, cHeight, , , , , vbSrcAnd
.Refresh
End With
'Working = False
End Sub
Eric De Decker
vbg.be@vbgroup.nl
License And Copy Protection AxtiveX.
Download Demo version on my Site: