尝试为android编写一个简单的绘图程序
我正在尝试弄清楚如何在 Android 中编写一个简单的绘图程序。我看到一个示例程序,它将每个笔划存储在一个数组中,然后在需要更新屏幕时播放该数组。对我来说,这似乎不合逻辑。我想绘制位图,更新只会绘制位图而不是每个笔画。 (我不知道如何在android中做到这一点)
任何想法 ? 特德
I'm trying to figure out how to wite a simple drawing program in Android. I saw a sample program that stored each stroke in a array, then played back the array when the screen needed to be updated. To me this did not seem to proctical. I would like to draw in a bitmap, and the update would just draw the bitmap instad of every stroke. ( i could not figure out how to do this in android)
Any thoughts
?
Ted
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Android 示例:有几个中等复杂的位,但这是来自 Android SDK 中的 Sensors.java api 演示。它演示了位图操作:
Look at the Android samples: there are a couple of moderately complicated bits, but this is from the Sensors.java api demo in the Android SDK. It demonstrates the bitmap manipulation: