问题
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