VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A photoshop-like BEVEL EFFECT in VB

grigri  (9 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

This program takes a bitmap image and applies a bevel effect to it, adding hilights and shadows to make it appear 3-D.
The direction and elevation of the light can be changed, as can the size of the bevel.
Includes a "debug" mode which shows the process step-by-step (see screenshot)
Some of the calculations have been converted to integer calculations for speed. Others still use floating-point, this is one future optimization that I might do.

Assumes
The code uses the cDibBitmap class for www.vbaccelerator.com

Side Effects
Error checking is minimal.

Rate A photoshop-like BEVEL EFFECT in VB (14(14 Vote))

Download A photoshop-like BEVEL EFFECT in VB

A photoshop-like BEVEL EFFECT in VB Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters