Exclude the overlay app icon from a screenshot

强颜欢笑 提交于 2019-12-06 03:44:25

问题


Im just brainstorming an idea and Im checking its possibility before starting the code. Lets say I have an app that takes a screenshot whenever I tap on its overlayed icon on screen,is there a way to exclude my app's icon from the resulting image?


回答1:


The media projection APIs simply capture what is on the screen. There is no means to say "ignore this window", other than by making the window not be there (or be transparent) at the time of the screen capture.




回答2:


very simple

hide the icon at the capture time and then make it visible after that.



来源:https://stackoverflow.com/questions/44860420/exclude-the-overlay-app-icon-from-a-screenshot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!