VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Create Drop Shadows

Ed Porter  (3 Submissions)   Graphics   VB Script   Advanced   Wed 3rd February 2021

'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.

Returns
Adjusted picturebox (includes gradient shadow)

Rate Create Drop Shadows (16(16 Vote))

Download Create Drop Shadows

Create Drop Shadows Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters