I am investigating a potential feature to my application which I can programmatically dim the brightness of the screen. I get I will not be able to change the brightness of the TV but I was wondering if:
-
If there are any objects available in the SDK that provide that functionality? To dim the screen.
-
Or, I was thinking of potentially creating an overlay, with a set color and opacity that would have a higher z-index? I was thinking if you use a view or you use a roBitmap to create a drawing and set it to the size of the visible screen.
Thanks
I think it would be nice to have the ability to, but I think I may give it a shot - #2. I guess it doesn’t hurt to try.
I’m just looking for a black overlay with a set alpha value. As an idea, I can see it working, but that’s different when you actually implement it haha!
My screensaver is a simple black background with all white text and icons. If anything, I need it to dim the readable text and icons. I think it should work in my case.
I’ll report back after I try this out.
I was able to get a working version of a dimmed screen. As the thread has mentioned, there is no way to actually dim the TV’s screen. That makes sense and I totally get that, however, I wanted to see if adding an overlay could artificially dim the colors of my screensaver on the screen. The TV screen backlight stays the same brightness but after adding the overlay, I can see a noticeable effect “artificially”.
By using the z-index, I added a new rectangle object to the screen, added a transition and size, with a color with an opacity level. Here are results:
[upload|t8a4DMZI3d4rtjpHibMBtA==]
[upload|prb/aLF1pEB0T82+xcAblw==]
Obviously, these pictures do not show the physical brightness of the screen but it did lower the apparent brightness of the white. Give it a try!