VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Alpha gradient Pictures

Saed abumokh  (7 Submissions)   Graphics   Intermediate   Wed 3rd February 2021

This code draws two pictures that merged - with gradually alpha pixels (like in photoshop)this code is realy wonderful but it's not so hard although its fast, it uses AlphaBlend API function, that requires the destination hDC and source hDC and both's recangle (left,top,width,height) and the blend value(beware: the blend value is between 0 and 255, but in AlphaBlend API function multiply the blend value by 256^2 or in hex add 4 zeroez in the right side like: &H9F --> &H9F0000)

API Declarations
Private Declare Function AlphaBlend Lib "msimg32.dll" (ByVal hdc As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal hdc As Long, ByVal lInt As Long, ByVal lInt As Long, ByVal

Rate Alpha gradient Pictures (3(3 Vote))

Download Alpha gradient Pictures

Alpha gradient Pictures Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters