Click here to Skip to main content
11,648,301 members (71,442 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET programming
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 27-Sep-12 7:49am
Edited 27-Sep-12 7:52am
Sergey Alexandrovich Kryukov at 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.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

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

AfterShave at 27-Sep-12 14:18pm
I mean to adjust an image's brightness/contrast.
Sergey Alexandrovich Kryukov at 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.

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

  Print Answers RSS
0 F-ES Sitecore 395
1 330
2 DamithSL 300
3 OriginalGriff 277
4 CPallini 250
0 OriginalGriff 1,342
1 994
2 DamithSL 981
3 Sergey Alexandrovich Kryukov 893
4 CPallini 845

Advertise | Privacy | Mobile
Web04 | 2.8.150804.4 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100