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
4
votes
2 answers

How to change brightness of an image in android?

I am developing an Image manipulation software in android.i want to change the brightness of an particular image.how it can be done in code?
ajay
  • 355
  • 3
  • 8
  • 17
4
votes
0 answers

Finding color matrix for Brightness and contrast for iOS Application

I checked out the color matrix for brightness and contrast and I got {contrast, 0, 0, 0, brightness 0, contrast, 0, 0, brightness 0, 0, contrast, 0, brightness 0, 0, 0, 1, …
4
votes
1 answer

Android: Changing image contrast and brightness upon scrolling seekbar

I would like to set the contrast and brightness of a imageview. Referring from How to programmatically change contrast of a bitmap in android?, which should be the most fastest and efficient way of doing so, I have implemented the code as…
pearmak
  • 4,979
  • 15
  • 64
  • 122
4
votes
1 answer

Set the screen brightness to the minimum

I have problems trying to set the screen brightness to the minimum. My code is the following: WindowManager.LayoutParams params = w.getAttributes(); params.screenBrightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_OFF; …
francas
  • 311
  • 3
  • 8
4
votes
1 answer

iOS 7 auto brightness is overruling apps screen brightness setting

I have an iOS 7 app where I want to make the screen darker. I am adjusting the screen brightness using the following line: [UIScreen mainScreen].brightness = 0.3; This dims the screen as I expect, but if a user has auto brightness enabled the…
lehn0058
  • 19,977
  • 15
  • 69
  • 109
4
votes
1 answer

Brightness of an image keeps increasing even when moving Seekbar's scrollbar left

In my app, I want to be able to change the brightness of an image within an ImageView. I use seekbar for this purpose. It does change the brightness of the image when I move the scrollbar right but when I want to reduce the brightness and move left…
4
votes
2 answers

How to query GetMonitorBrightness from C#

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…
CodingBarfield
  • 3,392
  • 2
  • 27
  • 54
4
votes
2 answers

Android Screen Type/Brightness

Is there a way to get info about screen type in android? I want to know is device i am using amoled/ips/tft or get maximum brightness of screen, not relative brightness but brightness in nits or candelas/cm2
ZZZ
  • 678
  • 2
  • 10
  • 26
4
votes
5 answers

How to turn off Auto-Brightness programmatically?

I was wondering if there is a method to toggle the "Auto-Brightness" option to the OFF position on iOS devices and if so, what is it?
David
  • 583
  • 1
  • 10
  • 27
4
votes
2 answers

Brightness/exposure function with vb .net

I'm making a simple image editor in VB.NET, and one of the functions is brightness/ exposure. this is how I'm doing it: For i = 0 To img.Width - 1 For j = 0 To img.Height - 1 Dim s As Color = img.GetPixel(i, j) Dim r As Integer…
jmasterx
  • 52,639
  • 96
  • 311
  • 557
4
votes
1 answer

How to retrieve current system Screen brightness value in android?

I am trying to create an app which will set brightness of an android device programmatically. I have manage to change device brightness using the following code: BackLightValue =…
DoctorAV
  • 1,189
  • 1
  • 14
  • 40
4
votes
1 answer

Android setting screen brightness to 0 turns off the screen - how to avoid

In Android 2.3.3, I'm trying to set the screen brightness to 0 with this code: Window myWindow = getWindow(); WindowManager.LayoutParams winParams = myWindow.getAttributes(); winParams.screenBrightness = 0.0f; myWindow.setAttributes(winParams); and…
Mcingwe
  • 2,070
  • 2
  • 18
  • 17
4
votes
2 answers

Set Android screen brightness

I am trying to set the screen brightness in android completely dark. The first time it works perfectly but after the brightness is 0 but I can see the screen. How make the android screen completely dark? This is my code: WindowManager.LayoutParams…
jcesarms15
  • 181
  • 1
  • 3
  • 10
4
votes
2 answers

Using ImageMagick++ to modify image contrast/brightness

I'm trying to apply contrast and brightness to a bitmap in memory and I'm completely lost. Currently I'm trying to use Magick++ to do it, but if one of the other APIs would work better I'm all ears. I managed to find…
Justin G
  • 776
  • 1
  • 10
  • 25
3
votes
1 answer

Java Buffered Image RescaleOp Transparency Issue

I seem to be having an issue where I create a BufferedImage which has transparent pixels like this: BufferedImage buff = new BufferedImage(i.getWidth(null), i.getHeight(null), BufferedImage.TYPE_INT_ARGB); and it works fine until I filter it…
MrDrProfessorTyler
  • 403
  • 2
  • 10
  • 26