VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Create Drop Shadows

by Ed Porter (3 Submissions)
Category: Graphics
Compatability: VB Script
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (16 Votes)

'Develop a "drop shadow" around a picturebox. Module uses standard APIs so that code will work in all versions of Windows (Win95 to WinXP).
Produces true, variable width, gradient transparent drop shadows that become part of the original graphic.

Inputs
PictureBox, shadow width
Assumes
'Procedure develops a "drop shadow" around a picturebox (sWidth in Pixels). The right and lower edge sections of the object container are stored in temporary Device Contexts and used as "background(s)" to create the shadow. These sections are then added to the existing picturebox to create an integral effect.
Code Returns
Adjusted picturebox (includes gradient shadow)

Rate Create Drop Shadows

Download Create Drop Shadows

Download Create Drop Shadows (22 KB)

Create Drop Shadows Comments

No comments have been posted about Create Drop Shadows. Why not be the first to post a comment about Create Drop Shadows.

Post your comment

Subject:
Message:
0/1000 characters