To give you an ad-free browsing experience, this website is completely funded by donations. If you use the information in this article to solve a problem, entertain yourself, or otherwise improve your life, please consider a small donation to help pay for server costs. (Even $1 helps!) Many thanks, and enjoy the site!

// Graphics Code

Real-time Image Levels (input/output/midtone) in VB6

This is the first of its kind in VB: accurate, real-time image level adjustment (something familiar to regular GIMP/PhotoShop users). Image Levels provide better control over an image’s luminance than strict brightness/contrast methods, but not quite as much control as a well-built Curves Dialog. Adjusting an image with input/output/midtone levels is primarily designed to brighten or darken an image without losing detail at either end of the luminance spectrum. I’ve included simple histogram drawing code (as the screenshot shows) so you can see the effect that adjusting levels has on an image’s histogram. The code is well-commented and fast – please post comments and enjoy!

The included histogram code is also quite good.

The included histogram code is also quite good.

 

bookmark and share this article

if you liked this article, you may also like

Discussion (Oldest Comments Displayed First)

Public comments are closed for this article. Private comments may be submitted using this link.

Comments are closed.