|
|
Report Error:
|
|
|
Total Hits: 752 | Today: 0 |
Author: http://www.vbaccelerator.com
|
Rating:
|
|

To apply a brightness filter you simply add a fixed amount to every pixel in the image and then clamp the result to ensure it remains in the range 0 - 255. To apply a contrast filter, you determine if a pixel is lighter or darker than a threshold amount. If it's lighter, you scale the pixel's intensity up otherwise you scale it down. In code this is done by subtracting the threshold from a pixel, multiplying by the contrast factor and adding the threshold value back again. As with the brighness filter the resulting value needs to be clamped to ensure it remains in the range 0 - 255.
|
If you would like to report an error or update for this
listing please complete the form below.
Note: a Valid email is required for update request
|
<< Back to listing
|
|
|
|
|