Title: Real-time Image Levels (input/output/midtone) - Just Like Photoshop!
Description: This is the first of its kind in VB: accurate, real-time image level adjustment. (This will be very familiar to any PhotoShop users among us :) Image Levels provide better control over an image's luminance than strict brightness/contrast methods (since they tend to distribute an image's histogram more equally). Adjusting an image using input/output/midtone levels is mainly used 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 that you can see the effects that adjusting input/output/midtone levels has on an image's histogram. The code is well-commented and fast - please post comments and enjoy!
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=66955&lngWId=1
The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.