03-01-2007, 08:16 AM
Ok I pretty much got alpha blending working.. I got 2 pixboxes that will blend together. I want to now have it do it with the picScreen... or the map.
Thats what I have. Some reason with this .. say if I have a browser up when I start the game.. my main menu is blended with the browser... I dont get why.
What do I use to mix it with the screen.... is using picScreen wrong?
Code:
Private Sub hsAlphaBlend_Change()
' picTest.Picture = picChat.Picture
With BF
.BlendOp = AC_SRC_OVER
.BlendFlags = 0
.SourceConstantAlpha = 155
.AlphaFormat = 0
End With
RtlMoveMemory lBF, BF, 4
AlphaBlend picMainMenu.hdc, 0, 0, picMainMenu.ScaleWidth, picMainMenu.ScaleHeight, picScreen.hdc, 0, 0, picMainMenu.ScaleWidth, picMainMenu.ScaleHeight, lBF
' picTest.Refresh
End Sub
Thats what I have. Some reason with this .. say if I have a browser up when I start the game.. my main menu is blended with the browser... I dont get why.
What do I use to mix it with the screen.... is using picScreen wrong?