的&QUOT真实姓名;在一个图像&QUOT所有的帧;图像? [英] Real name of "all frames in one image" images?

查看:144
本文介绍了的&QUOT真实姓名;在一个图像&QUOT所有的帧;图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何这类在一个图像的所有帧的图像调用。拜托,你能告诉我这些图像是怎么叫什么名字?

I dont know how these kind of "all frames in one image" images are called. Please, can you tell me how these images are called?

我找不到任何信息

推荐答案

使用一个画布,在的onDraw()函数绘制图像,并设置一个新的图像更新功能可以得出各一次。

Use a canvas, drawing an image in the onDraw() function, and setting a new image to be drawn in the update function each time.

有关详细的教程,看看这个:
http://jmsliu.com/2306/android-canvas-example-draw-sprite-sheet-animation-on-canvas.html

For a detailed tutorial, look at this: http://jmsliu.com/2306/android-canvas-example-draw-sprite-sheet-animation-on-canvas.html

编辑:
哎呀,支付教程!
好了,试试这个吧。
对于使用帆布制作动画:
如何动画在画布上的路径 - 机器人

您不想动画的路径,但绘制图像。
使用这样的回答:
在画布上绘制对象/图片

You don't want to animate a path, but draw images. Use this answer: draw object/image on canvas

现在,而不是转换到的onDraw()的路径,只是不停地在一系列绘图下一个图像。

Now, instead of transformations to the path in onDraw(), just keep drawing the next image in the series.

这篇关于的&QUOT真实姓名;在一个图像&QUOT所有的帧;图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆