我已经用此代码加载了动画,如何获得动画的第5帧?

问题描述 投票:0回答:1

我已经用以下代码加载了动画:

images = loadImages("Animation_data/movie", ".jpg", 134);

您将如何显示动画的第五帧?

processing
1个回答
0
投票

假设imagesPImage[],您只能使用索引4:image(images[4],0,0);

有关更多信息,请参见array access[]

此外,我已经开发了一个处理库,可以轻松加载和显示称为Image Sequence Player的图像序列,并且已在Hirsch & Mann的一些商业项目中使用过

Image Sequence Player processing library demo displaying a hand drawn sequence by James Patterson

((按James Patterson的图像序列]

© www.soinside.com 2019 - 2024. All rights reserved.