Results 1 to 7 of 7

Thread: Alphablending

  1. #1

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75
    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

  2. #2
    Guest
    Use BitBlt or PaintPicture.

  3. #3

    Thread Starter
    Lively Member Xero's Avatar
    Join Date
    Feb 2000
    Posts
    75
    How? I'm... uh... new to this stuff... I know a little bit with BitBlt, but thats about it...

  4. #4
    Guest
    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

  5. #5
    Guest
    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

  6. #6
    Junior Member
    Join Date
    Feb 2000
    Posts
    29
    Use Direct3DIM, that has to be the fastest way (if you have a 3d card, that is).

  7. #7
    Guest
    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
  •  



Click Here to Expand Forum to Full Width