首先用snapshot截图,得到image.PixelMap然后转为jpg保存到相册中。参考链接:https://gitee.com/openharmony/applications\_app\_samples/tree/master/code/SystemFeature/Media/Screenshot
首先用snapshot截图,得到image.PixelMap然后转为jpg保存到相册中。参考链接:https://gitee.com/openharmony/applications\_app\_samples/tree/master/code/SystemFeature/Media/Screenshot