Click here to Skip to main content
16,019,349 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have searched over the web but i can't find an answer. How can I adjust contrast or brightness if a trackbar's value is changed?
Posted
Updated 27-Sep-12 7:52am
v2
Comments
Sergey Alexandrovich Kryukov 27-Sep-12 13:54pm    
Contrast/brightness of what? OK, as bitmap manipulations are accessible directly through .NET FCL, I'll assume this is the monitor contrast/brightness.
--SA

1 solution

Please see this CodeProject article: Setting Screen Brightness in C#[^].

I don't understand how could you miss it if you did the search.

—SA
 
Share this answer
 
Comments
AfterShave 27-Sep-12 14:18pm    
I mean to adjust an image's brightness/contrast.
Sergey Alexandrovich Kryukov 27-Sep-12 16:25pm    
You should have been more accurate in posing your question. And now, you are still inaccurate, as the answer greatly depends on what you are using. It could be System.Drawing, or WPF, or something else. In all cases, it's taking the whole buffer of image data and looping through all pixels.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900