VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



VisualEffects #3 The AlphaBlending (by MrHippo)


Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (10 Votes)

And now for the 3rd sample in the popular VisualEffects series, the AlphaBlending. Alphablending tehnique was introduced in Windows 98. It allows you to blend two images smoothly by selecting image's transparency. Well commented and don't forget to check out VisualEffects #1 & #2, the translucency and transparency. Also, if like it or not, please vote & comment and encourage me and all of us to keep on providing each other with coded solutions. Thank you, MrHippo

API Declarations
' API DECLARATION [ ALPHA BLEND FUNCTION ]
Private Declare Function AlphaBlend Lib "msimg32" ( _
ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, _
ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, _
ByVal xSrc As Long, ByVal ySrc As Long, ByVal widthSrc As Long, _
ByVal heightSrc As Long, ByVal blendFunct As Long) As Boolean
' API DECLARATIONS [ COPY MEMORY FUNCTION ]
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" ( _
Destination As Any, Source As Any, ByVal Length As Long)

Rate VisualEffects #3 The AlphaBlending (by MrHippo)

Download VisualEffects #3 The AlphaBlending (by MrHippo)

Download VisualEffects #3 The AlphaBlending (by MrHippo) (22 KB)

VisualEffects #3 The AlphaBlending (by MrHippo) Comments

No comments have been posted about VisualEffects #3 The AlphaBlending (by MrHippo). Why not be the first to post a comment about VisualEffects #3 The AlphaBlending (by MrHippo).

Post your comment

Subject:
Message:
0/1000 characters