将Maui ImageSource转换为PNG
我正在分别为Android,iOS和Windows的本机画布上渲染签名。现在,我需要在本地保存此保存,因此我将视图转换为流映像源格式。但是我不确定如何将其转换为PNG并在本地保存吗?
I'm rendering a signature on the native canvas for Android, iOS, and windows separately. Now, I need to save this locally, so I have converted the view to stream image source format. But I'm not sure how to convert to PNG and save it locally?.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用依赖项注入来处理它,请在您想要的平台上实现界面。
例如,我对Android进行了测试:
接口:
实现:
You can use Dependency Injection to deal with it, implement the interface on the platform you want.
For example, I did a test on android:
The interface:
The implemention: