473,587 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I support Screen brightness with C#

I have a project, and would like to support screen brightness up/down in C#,
anyone can help me about this issue, I know one possibility is write a
driver, and
AP through driver to control the H/W.

Is anyway can adjust the screen brightness without driver?
Nov 16 '05 #1
2 6976
Steve,

If the display supports it, you can call the DeviceIoControl function
through the P/Invoke layer in the Windows API, and pass
IOCTL_VIDEO_SET _DISPLAY_BRIGHT NESS for the dwControlCode parameter.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:CA******** *************** ***********@mic rosoft.com...
I have a project, and would like to support screen brightness up/down in
C#,
anyone can help me about this issue, I know one possibility is write a
driver, and
AP through driver to control the H/W.

Is anyway can adjust the screen brightness without driver?

Nov 16 '05 #2
Nicholas,

thanks for the hint, yes, it should be the easiest way to adjust the
brightness, really appreciated.

B. RGDS
Steve

"Nicholas Paldino [.NET/C# MVP]" wrote:
Steve,

If the display supports it, you can call the DeviceIoControl function
through the P/Invoke layer in the Windows API, and pass
IOCTL_VIDEO_SET _DISPLAY_BRIGHT NESS for the dwControlCode parameter.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:CA******** *************** ***********@mic rosoft.com...
I have a project, and would like to support screen brightness up/down in
C#,
anyone can help me about this issue, I know one possibility is write a
driver, and
AP through driver to control the H/W.

Is anyway can adjust the screen brightness without driver?


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3059
by: Amy | last post by:
Hi, I have written a program using JAI for a project I am doing which can be used to adjust the brightness of an image. It all works fine but I now need to write it all up and am not entirely sure what it is doing. The code is below: public void adjustLight(int ipParam){ // ipParam = 18 pb = new ParameterBlock();
2
19661
by: | last post by:
Hello, I am trying to change brightness of a color at run-time. I can get all the components: Hue, Saturation, Brightness from Color object, and I can obviously change these values but how can I create a new color based on these new values? Color oColor = Color.FromArgb(129, 129, 129); float fNewHue = oColor.GetHue() + 10;
3
7314
by: ACaunter | last post by:
Hi there, I was wondering how i could have a slider bar or something on my ASP.Net page to control the image quality.. like change it's sharpness, brightness, and contrast?? is that possible?? thanks -- AdamPC@hotmail.com
1
2000
by: psuedonym | last post by:
Can someone please explain to me how the complier can manage to make sense out of the following bit of nonsense ;-) My Solution Name: Dim.sln My Project Name: Dim.vbproj (Standard Console Application) My File Name: Dim.vb (Standard class module) Namespace ' Class to manipulate brightness in VB
7
10831
by: marfi95 | last post by:
I'm trying to implement some code in vb.net to allow the user to adjust the brightness or contrast on an image (through the use of a slider) that is already black & white in the bitmap. I have tried to use the colormatrix and even down to the pixel using GetPixel and SetPixel in system.drawing, but I'm really not up on using gdi+ and...
0
1382
by: Andras Walz | last post by:
Hi, I have includes the mediaplayer in the VB.NET- Project and it works fine. I want to change the brightness of the video (blending). I have found in the doku: WMPLibCtl.WMPVideoSettingsCtrl which shoule be able to change the color / brightness / hue
0
1370
by: Iwanow | last post by:
Hello! I'm using Bitmap->LockBits method to copy its pixels into an array according to example found on http://msdn2.microsoft.com/en-us/library/5ey6h79d.aspx . Now I need to use pixels' brightness. How do I get such info? I guess that requires some special PixelFormat argument. Thanks in in advance for all hints.
1
2471
by: Thorsten Kleinweber | last post by:
Hello, I did some first steps in programming a site for a friend and have some questions concerning web design. The site is http://www.stevanez-juls.de: 1. On my tft display (with low brightness adjustment) the site is correctly bright but on some other monitors it's very dark, does somebody know why? 2. Does somebody know why scrolling...
0
1291
by: wegsy | last post by:
hi guys i am having trouble with the contrast and brightness on my monitor. i cant fix it using the buttons on the monitor and when i try to change it in display in the control panel then it comes up with "your system administrator has disabled the display control panel" any help would be appreciated
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5718
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.