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
5
votes
1 answer

Lighten RGB with pure CSS

Using pure CSS how can I lighten an RGB like: rgb(255, 0, 0) SASS's lighten mixin works well: lighten(rgb(255, 0, 0), 25%) however it doesn't support CSS variables like this: lighten(var(--redColor), 25%) I need to use CSS variables because you can…
Joshua
  • 5,032
  • 2
  • 29
  • 45
5
votes
4 answers

How to Make an Image Uniform Brightness (using Python/PIL)

I want to take an image of a document that was photographed and make it look like it was scanned. Since a scanner will put a constant light source over the whole document, I want to achieve that effect on a photo of a document. The desired effect…
Greg
  • 45,306
  • 89
  • 231
  • 297
5
votes
4 answers

How to increase brightness of camera in Android

How do I change the brightness level of the camera?
Sunil Pandey
  • 7,042
  • 7
  • 35
  • 48
5
votes
2 answers

Replicate photo booth screen flash in cocoa

I am trying to replicate a screen flash effect in a mac cocoa application similar to that of the Photo Booth. A white layer is overlayed on the screen and the brightness of the screen fades really bright and then down again. Can anyone give me some…
JordanC
  • 4,339
  • 1
  • 22
  • 16
5
votes
3 answers

Detect if a brightness change on iOS was a user action or automatic action

I've seen that I can detect changes in screen brightness by registering as an observer for UIScreenBrightnessDidChangeNotification - (void)viewDidLoad { [super viewDidLoad]; [[NSNotificationCenter defaultCenter] addObserver:self…
The dude
  • 7,896
  • 1
  • 25
  • 50
5
votes
3 answers

font.TintAndShade cannot change brightness of the text

I select a text and change its color and it tells me this Range("A7").Select With Selection.Font .ThemeColor = xlThemeColorAccent2 .TintAndShade = -1 End With But when I run this code the TintAndShade fails to work. The brightness of the…
user3167640
  • 53
  • 1
  • 3
5
votes
1 answer

BufferedImage getScaledInstance changes brightness of picture

I use this piece of code to draw a Image into a Graphics component. It should size the image to the maximum space available, if it is big enough: // getWidth() = component width, image.getWidth() = image width double w = getWidth() * 1.0 /…
Sebastian
  • 1,873
  • 4
  • 25
  • 57
5
votes
2 answers

Does iOS send notifications when the system changes the screen brightness?

Problem is, my reading app has a button that puts it into dark theme mode. The brightness gets reduced by 10%. When the user returns to the normal mode, it is set back to the remembered brightness. But in the meantime the actual system brightness…
openfrog
  • 40,201
  • 65
  • 225
  • 373
5
votes
1 answer

WPF 3D light intensity

I have a 3D scene with an AmbientLight. And I want to add a second Light (SpotLight) to beam an area with red. Unfortunately the AmbientLight is much brighter than the Spotlight so it is not visible. Has anyone an idea? Thanks in advance.
Andreas
  • 3,843
  • 3
  • 40
  • 53
4
votes
2 answers

Generic algorithm to get and set the brightness of a pixel?

I've been looking around for a simple algorithm to get and set the brightness of a pixel, but can't find anything - only research papers and complex libraries. So does anyone know what is the formula to calculate the brightness of a pixel? And which…
laurent
  • 88,262
  • 77
  • 290
  • 428
4
votes
2 answers

Android Development: Changing Screen Brightness in Service

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…
carefacerz
  • 1,287
  • 3
  • 16
  • 27
4
votes
3 answers

WPF change brightness

Well i have a application that is black and white and i need a function to lower the brightness how can i do this? all the white comes from a SolidColorBrush that is saved in a ResourceDictionary(Application.xaml), my current solution is to put a…
Peter
  • 37,042
  • 39
  • 142
  • 198
4
votes
1 answer

Increase Brightness and Contrast of image after capturing from camera in Android

I am making a one application in which I capture an image from camera and make the pdf out of it. But the quality of image is poor. So I want to set the brightness and contrast of the image. Is there any way to increase Brightness and Contrast of…
4
votes
5 answers

Help needed with PHP function: brightness(); making RGB colors darker/brighter

Imagine a valid #RGB color in hexadecimal, defined as $color = "#f7b9a0"; Now I want to have php derive from this $color two other colors which are slightly lighter/darker (same hue/color but just altered brightness). What ways could I achieve this?…
Sam
  • 15,254
  • 25
  • 90
  • 145
4
votes
4 answers

How do I adjust brightness, contrast and vibrance with opencv python?

I am new to image processing. I program in Python3 and uses the OpenCV image processing library.I want to adjust the following attributes. Brightness Contrast Vibrance Hue Saturation Lightness For 4, 5, 6. I am using the following code to convert…
Antonie Lin
  • 132
  • 1
  • 2
  • 9