保存没有背景图像的画布

发布于 2024-12-21 06:43:29 字数 111 浏览 2 评论 0原文

我是 Android 开发新手。

我正在尝试在完成一些绘制后从画布保存位图。画布以图像初始化。然后是一些简单的绘画...现在我想保存没有初始化图像的新绘画。是否可以?

提前致谢

I am new in Android development.

I am trying to save a bitmap from the canvas after doing some paint. the canvas is initiaised with an image. And then some simple paining... Now I want to save the new paining without the initialised image. Is it possible?

thanx in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

屋檐 2024-12-28 06:43:29

尝试使用两张画布,一张用于背景绘制,一张用于其他绘制。

Try to use two canvases, one for background draw, one for other draw.

明明#如月 2024-12-28 06:43:29

创建一个透明画布,并将背景图像放在下面。

Create a transparent canvas, and put your background image underneath.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文