Articles
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Monday, September 22, 2014
Home
Articles & Samples
Dev Search
Sample Chapters
Link to US
Contact
Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase
User Reviews:

Home > Search > Downloads > Visual Studio 6.0
Brightness and Contrast       
Total Hits: 796  |  Today: 0 Author: http://www.vbaccelerator.com       Rating:  
Read Reviews | Write Review |              Your 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.

No reviews have been written for this listing.

Write Your Own Review

<< Back to listing

DevASP - Privacy - Disclaimer
Copyright 2008 DevASP.com