- Tanner Helland (dot) Com - http://www.tannerhelland.com -

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

Posted By Tanner On December 24, 2008 @ 4:57 pm In Graphics Code | Comments Disabled

This is the first of its kind in VB: accurate, real-time image level adjustment. 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 image curves dialog [1]. 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.


Article printed from Tanner Helland (dot) Com: http://www.tannerhelland.com

URL to article: http://www.tannerhelland.com/341/image-levels-vb6/

URLs in this post:

[1] well-built image curves dialog: http://www.tannerhelland.com/336/image-curves-vb6/

All text copyright © 2008 Tanner Helland. To reduce paper and ink usage, all comments, images, and videos have been suppressed on this printing.