brightness

How to increase brightness of camera in Android

大城市里の小女人 提交于 2019-12-21 17:51:29
问题 How do I change the brightness level of the camera? 回答1: Using the camera parameters as pointed out by @appleskin, would either of these methods help? setWhiteBalance() or setExposureCompensation() 回答2: You can pass your camera parameters. 回答3: Try parameters.set("iso", 400); or whatever int value is supported on your device 回答4: used following way to increase or decrease brightness ( its for activity so you can used anywhere for camera or activity also), its working fine.so it helping to

Changing Backlight Level, iPhone

余生颓废 提交于 2019-12-21 03:00:34
问题 I searched around for a way to set the backlight level within an app on the iPhone. I found a solution here: http://www.iphonedevsdk.com/forum/29097-post3.html The problem I have is, when I add this to my app I get an error and a warning. My code is as follows: #include "GraphicsServices.h" - (void) viewWillAppear:(BOOL)animated { NSNumber *bl = (NSNumber*) CFPreferencesCopyAppValue(CFSTR("SBBacklightLevel" ), CFSTR("com.apple.springboard")); previousBacklightLevel = [bl floatValue]; //Error

Windows: How to change monitor's backlight brightness

与世无争的帅哥 提交于 2019-12-19 19:49:11
问题 This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 9 years ago . Ever since I've been using an external monitor with my laptop, when I need to change the backlight brightness I have to press the monitor's buttons to navigate through its menu and adjust the brightness. That is really a pain. It's too many button presses! When I was using my laptop's integrated monitor, that was as simple as presing the Fn key plus a combination. Probably some of

Android Development: Changing Screen Brightness in Service

我们两清 提交于 2019-12-19 09:04:05
问题 Now i do try again. I want to change the screen brightness. I've Tried: WindowManager.LayoutParams layoutParams = getWindow().getAttributes(); layoutParams.screenBrightness = 0.5F; // set 50% brightness getWindow().setAttributes(layoutParams); and seems to work in activity but when I am in service i get that getWindow() compile error. 回答1: A service cannot change the screen brightness that way. A service does not have a user interface, so it does not have Window . You can try to change the

IOS5 setBrightness didn't work with applicationWillResignActive

自闭症网瘾萝莉.ら 提交于 2019-12-18 20:03:17
问题 I use [[UIScreen mainScreen]setBrightness: ] (in sdk 5.0) to change the system background light in my app. The following steps work with my app Active the app, get the system brightness as default, then save as sysBright . Change the brightness with my app, changed brightness, then save as appBright . ResignActive app with home button or lock button, set brightness to sysBright (step 1 value, system default brightness). Active app again. Then it will repeat the above steps form 1 to 3.

Balancing contrast and brightness between stitched images

自作多情 提交于 2019-12-18 10:46:35
问题 I'm working on an image stitching project, and I understand there's different approaches on dealing with contrast and brightness of an image. I could of course deal with this issue before I even stitched the image, but yet the result is not as consistent as I would hope. So my question is if it's possible by any chance to "balance" or rather "equalize" the contrast and brightness in color pictures after the stitching has taken place? 回答1: You want to determine the histogram equalization

How to change the Monitor brightness on Linux?

做~自己de王妃 提交于 2019-12-18 10:35:53
问题 How do I programmatically change the monitor brightness on Linux? I'm using SLES 11. 回答1: You can always use xrandr --output LVDS1 --brightness 0.9 回答2: You can try using xbacklight. xbacklight -set 100 回答3: For me it works perfectly with xbacklight . If you for example wish to set up a key binding, you can use bindsym $SUPER+Shift+plus exec xbacklight -inc 10 bindsym $SUPER+Shift+minus exec xbacklight -dec 10 in your window managers config (I use i3) to regulate your screen's brightness

How to query GetMonitorBrightness from C#

你。 提交于 2019-12-18 06:53:49
问题 How does GetMonitorBrightness http://msdn.microsoft.com/en-us/library/ms775205.aspx work? Can someone give me an actual working implementation calling this code in C#? I'm trying to retrieve the allowed brightness levels my laptop supports. I have the following working code that sets the brightness from 1 to ~150. But I'm looking for the allowed input values (min max values). static void SetBrightness(byte targetBrightness) { ManagementScope scope = new ManagementScope("root\\WMI");

How to query GetMonitorBrightness from C#

守給你的承諾、 提交于 2019-12-18 06:52:00
问题 How does GetMonitorBrightness http://msdn.microsoft.com/en-us/library/ms775205.aspx work? Can someone give me an actual working implementation calling this code in C#? I'm trying to retrieve the allowed brightness levels my laptop supports. I have the following working code that sets the brightness from 1 to ~150. But I'm looking for the allowed input values (min max values). static void SetBrightness(byte targetBrightness) { ManagementScope scope = new ManagementScope("root\\WMI");

Get preferred screen brightness in Android

走远了吗. 提交于 2019-12-17 22:33:54
问题 How do you get the preferred screen brightness in Android? To change the screen brightness I use WindowManager.LayoutParams.screenBrightness. According to the documentation: This can be used to override the user's preferred brightness of the screen. A value of less than 0, the default, means to use the preferred screen brightness. 0 to 1 adjusts the brightness from dark to full bright. When screenBrightness is less than 0 I would like to start with the preferred screen brightness. How can I