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