Answers:
被捕获的单元是由macOS确定的层或窗口 WindowServer进程 。
作为开发人员,可通过CoreGraphic访问 CGWindowListCreateImage 方法:
CGImageRef CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption listOption, CGWindowID windowID, CGWindowImageOption imageOption);
此调用基于动态生成的窗口列表返回合成图像。
像工具一样 橡子 , ScreenShot PSD ,和 Ondesoft屏幕捕获 可以截取捕获所有单个图层或窗口的截图。生成的捕获保留了分层,允许您根据需要选择,隐藏或编辑窗口。