|
-
Jun 27th, 2000, 02:33 AM
#1
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
-
Jun 27th, 2000, 02:38 AM
#2
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
-
Jun 27th, 2000, 02:44 AM
#3
Yes, that's my problem, but whow can I do it?
-
Jun 27th, 2000, 03:02 AM
#4
Declaration for module.
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
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:
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
-
Jun 27th, 2000, 03:55 AM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|