Can I invert the colors of the phone screen in my application?

As part of my first WP7 application, I give user settings to warn them of the completion of the task: currently I have the ability to vibrate the phone, but I would like to “launch” the screen by inverting the colors and vice versa.

However, I cannot figure out how to invert screen colors. Is it possible?

+3
source share
2 answers

You can capture the screen of your application as WriteableBitmap, invert colors and display it in the animation for a short period of time. Inverting the colors of the bitmap will look like this (sample for WPF).

+4

: ""? ? - , , , , , - !

: , ? , , .

"" -, (-)

, , ?

+3

Source: https://habr.com/ru/post/1759514/


All Articles