Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with Alpha Blending
#4
Ok im getting close. Went to pscode and found this source.

Heres what I got in form load

Code:
picTest.Picture = picMainMenu.Picture
    
    With BF
        .BlendOp = AC_SRC_OVER
        .BlendFlags = 0
        .SourceConstantAlpha = 50
        .AlphaFormat = 0
    End With

    RtlMoveMemory lBF, BF, 4
    
    AlphaBlend picTest.hdc, 0, 0, picTest.ScaleWidth, picTest.ScaleHeight, picScreen.hdc, 0, 0, picScreen.ScaleWidth, picScreen.ScaleHeight, lBF

    picMainMenu.Refresh
    picTest.Refresh
    picScreen.Refresh

I want MainMenu to alphablend with the screen... should I use picScreen or something else to get that?

Right now it just shows the mainmenu but no effects... it compiles fine and all. I also have the calls that are needed on mod Constants. If you want to see them let me know.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)