- Tanner Helland (dot) Com - http://www.tannerhelland.com -
Real-time Image Contrast in VB6
Posted By Tanner On June 19, 2008 @ 3:31 pm In Graphics Code,Programming | No Comments
Here’s the first (and still the best!) VB-based example that demonstrates how to correctly adjust an image’s contrast. I use DIB sections to maximize speed; it’s also worth mentioning that to perfectly determine contrast, you would have to first find the average brightness of the image – I use the shortcut method and assume that the average is 127 (close enough for our purposes).
Many people have used this code in various open-source VB projects, but rest assured: this is the original, most complete, most correct copy.
Article printed from Tanner Helland (dot) Com: http://www.tannerhelland.com
URL to article: http://www.tannerhelland.com/45/image-contrast-vb6/
Click here to print.
All text copyright © 2008 Tanner Helland. To reduce paper and ink usage, all comments, images, and videos have been suppressed on this printing.