android,画布撤消最后一笔

发布于 2024-12-22 15:23:19 字数 158 浏览 3 评论 0原文

从画布上撤消最后一笔的最简单方法是什么?只需撤消一次就可以了,两到三个是一个加号,尽管我想避免使用 Stack 和“push”来支持 ArrayList,因为我有一个使用 、push 和 pop 的工作方法,但似乎这会扰乱绘制速度出于某种原因。所以现在我只想要一个更简单、更少撤消的级别,无需堆栈。谢谢

What's the simplest way to do an Undo last stroke from canvas? Just undo once is ok, two or three is a plus although I'd want to avoid using Stack and 'push' in favor of ArrayList since I had a working method with , push and pop but seems like that messes up the drawing speed for some reason. So now I just want a simpler less undo levels without Stack. thanks

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

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

发布评论

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

评论(1

似最初 2024-12-29 15:23:19

你使用drawBitmap在屏幕上绘图吗?
如果是,则将位图存储到 SD 卡中。然后删除最后一张并显示上一张。

Are u using drawBitmap to draw on screen?
If yes then u r storing the bitmaps into sd card. Then just delete the last one and show the previous one.

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