|
-
May 29th, 2000, 03:19 AM
#1
Thread Starter
Lively Member
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
-
May 29th, 2000, 03:46 AM
#2
Use BitBlt or PaintPicture.
-
May 29th, 2000, 03:54 AM
#3
Thread Starter
Lively Member
How? I'm... uh... new to this stuff... I know a little bit with BitBlt, but thats about it...
-
May 30th, 2000, 08:15 AM
#4
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
-
May 30th, 2000, 08:46 PM
#5
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
-
May 31st, 2000, 01:44 AM
#6
Junior Member
Use Direct3DIM, that has to be the fastest way (if you have a 3d card, that is).
-
May 31st, 2000, 02:27 AM
#7
How do you use the function? Is it in the Type Library?
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
|