-
I need a fast way to draw a picture in a picturebox with a level of transparency really really fast. Because, I'm going to me doing it over and over and each time increasing the transparency so it looks like it fades away. Thanks!
-Xero
Programmer for Arkon Studios
-
Use BitBlt or PaintPicture.
-
How? I'm... uh... new to this stuff... I know a little bit with BitBlt, but thats about it...
-
Here is an example of PaintPicture
Put this code in a CommandButton. Make sure that there is a PictureBox on the Form with a Picture already loaded. Also, Set the ScaleMode property for everything to Pixel
Code:
Private Sub Command1_Click()
' Paint the Picture in Picture1 on the Form and
' shrink it to 32x32
Form1.PaintPicture Picture1.Picture, 0, 0, 32, 32
End Sub
-
Try this page, it shows how to use a dll called "alphablending.dll", it needs windows 98 or NT to work. http://www.planet-source-code.com/vb...txtCodeId=3213
-
Use Direct3DIM, that has to be the fastest way (if you have a 3d card, that is).
-
How do you use the function? Is it in the Type Library?