dcsimg
Results 1 to 2 of 2

Thread: TransparentBlt Issue

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2017
    Posts
    200

    TransparentBlt Issue

    I'm having a problem using TransparentBlt. I have two situations, one works and the other does not

    This one works

    Picture1.AutoRedraw = True. Picture1 background is red.
    Picture2.Autoredraw = True. Picture2 has black lines and circles on a white background. After the below code is executed Picture1 contains the black lines and circles

    Code:
    TransparentBlt Picture1.hDC, _
                        0, 40, _
                        Picture2.Width, Picture2.Height, _
                        Picture2.hDC, _
                        0, 0, _
                        Picture2.Width, Picture2.Height, _
                        vbWhite
    
    Picture1.Picture = Picture1.Image
    This one does not work. Everything is same as above except Picture2 has white lines and circles on a black background. After the below code is executed Picture1 does not contain the white lines and circles, it contains nothing

    Code:
    TransparentBlt Picture1.hDC, _
                        0, 40, _
                        Picture2.Width, Picture2.Height, _
                        Picture2.hDC, _
                        0, 0, _
                        Picture2.Width, Picture2.Height, _
                        vbBlack
    
    Picture1.Picture = Picture1.Image
    Anyone know why I can't draw the white lines and circles

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Mar 2017
    Posts
    200

    Re: TransparentBlt Issue

    Never mind the above question. The problem is something else and I will post it as soon as I can figure out the best way to explain it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width