I'm trying to move a the visible part of a picturebox by one line during each cycle(like scrolling), after that a new line is added to the picture box. Is that possible using BITBLT???
Thanks
Printable View
I'm trying to move a the visible part of a picturebox by one line during each cycle(like scrolling), after that a new line is added to the picture box. Is that possible using BITBLT???
Thanks
I cannot understand what you are trying to do. Are you trying to move a Picture in a direction little by little at a time? If so, yes you can do that with BitBlt
Yes, that's my problem, but whow can I do it?
Declaration for module.
But this code in a Timer. Make sure there is a PictureBox on the Form and also make sure that the SaleMode property for everything is set to Pixel.Code:Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (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
Code:Private Sub Timer1_Timer()
Cls ' Clear the Form's DC
Static iLeft ' Store the variable for left
iLeft = iLeft + 10 ' Increase the Left variable by 10
' Blt the image
BitBlt Form1.hDC, iLeft, 32, 32, 32, Picture1.hDC, 0, 0, SRCCOPY
End Sub
Danke