Questions tagged [brightness]

An attribute of visual perception in which a source appears to be radiating or reflecting light.

Brightness is an attribute of visual perception in which a source appears to be radiating or reflecting light. In other words, brightness is the perception elicited by the luminance of a visual target. This is a subjective attribute/property of an object being observed.

478 questions
56
votes
16 answers

Change the System Brightness Programmatically

I want to change the system brightness programmatically. For that purpose I am using this code: WindowManager.LayoutParams lp = window.getAttributes(); lp.screenBrightness = (255); window.setAttributes(lp); because I heard that max value is…
Usman Riaz
  • 2,920
  • 10
  • 43
  • 66
49
votes
12 answers

JavaScript Calculate brighter colour

I have a colour value in JS as a string #ff0000 How would I go about programatically calculating a brighter/lighter version of this colour, for example #ff4848, and be able to calculate the brightness via a percentage,…
Ozzy
  • 10,285
  • 26
  • 94
  • 138
39
votes
8 answers

Change brightness of background-image?

I am wondering if it is possible to change the brightness of: body{ background-image:url(); } Using HTML/CSS. The reason I would like to change it, is because I just spent a rather long time making the image, but when I put it on website, it is…
user3227878
  • 447
  • 1
  • 5
  • 10
31
votes
6 answers

Hex Code Brightness PHP?

I want users on my website to be able to pick a hex colour, and I just want to display white text for dark colours and black text for light colours. Can you work out the brightness from a hex code (preferably PHP)?
Juddling
  • 4,594
  • 8
  • 34
  • 40
30
votes
5 answers

Changing screen brightness programmatically (as with the power widget)

I was searching how to change the brightness of the screen programmatically and I found this it is very good solution and it works nice, but it works only while my app is active. After my application is shutdown then the brightness is returned back…
Lukap
  • 31,523
  • 64
  • 157
  • 244
27
votes
6 answers

applicationWillResignActive and setBrightness not working?

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…
Adam Waite
  • 19,175
  • 22
  • 126
  • 148
21
votes
11 answers

How to change the Monitor brightness on Linux?

How do I programmatically change the monitor brightness on Linux? I'm using SLES 11.
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
21
votes
3 answers

Get preferred screen brightness in Android

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 …
hpique
  • 119,096
  • 131
  • 338
  • 476
20
votes
9 answers

Arch (xbacklight): No outputs have backlight property

I have two folders in my /sys/class/backlight: 1> acpi_video0 2> intel_backlight The intel_backlight is useless because I can use the following command to adjust brightness in acpi_video0 (I'm running Nvidia drivers): e.g: echo 50 >…
catharchy
  • 321
  • 1
  • 2
  • 6
19
votes
4 answers

How to change brightness in iOS 5 app?

How would I program the ability to change brightness in-app? I know that its possible as I have seen at least three apps that can do it. This would be very useful for my app. I know that it's only possible in iOS 5 with the UIScreen Class, but I…
cory ginsberg
  • 2,907
  • 6
  • 25
  • 37
17
votes
4 answers

Brightness Screen Filter

Does anyone have an idea how to implement an Brightness Screen Filter like the one here: http://www.appbrain.com/app/screen-filter/com.haxor I need a starting point and I can't figure out how to do it.
Alex
  • 2,213
  • 4
  • 32
  • 44
17
votes
4 answers

Programmatically change Mac display brightness

How to change Mac display brightness from cocoa application?
tig
  • 25,841
  • 10
  • 64
  • 96
17
votes
2 answers

Adjust brightness, contrast and gamma of an image

What is an easy way to adjust brightness, contrast and gamma of an image in .NET?
VladL
  • 12,769
  • 10
  • 63
  • 83
16
votes
1 answer

python -- measuring pixel brightness

How can I get a measure for a pixels brightness for a specific pixel in an image? I'm looking for an absolute scale for comparing different pixels' brightness. Thanks
Double AA
  • 5,759
  • 16
  • 44
  • 56
16
votes
6 answers

Change brightness of JUST the background with CSS

I want to change the brightness of a DIV's background, without affected the other contents in a div. When I apply a hover brightness filter on the div, other elements in it are also affected. Which I do not want. The other solution I have is simply…
user2953063
  • 437
  • 2
  • 6
  • 10
1
2 3
31 32