在android中保存为png图像
我正在开发绘画应用程序,并将我的绘图保存为 png 图像。为了绘图,我使用了用位图创建的画布。它可以工作,但图像已损坏。任何人都可以帮助我吗?我没有用真机测试,而是在模拟器上测试。是模拟器的问题吗。我认为它的处理能力很小。我说得对吗? 谢谢。
I am developing paint app and i save my drawing as png image. For drawing i used canvas that created with a bitmap. it works but image was corrupted. Can any one help me. I didn't check it with a real phone but on the emulator. Is that problem with emulator. I think it has very small processing ability. Am i right?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模拟器工作正常。您使用哪段代码将位图存储为 png ?
以下在模拟器中运行良好:
The emulator works fine. What piece of code did you use to store the bitmap as png?
The following works fine in the emulator: