how-save-individual-frames --.*jpg???-- gifAnimation
in
Programming Questions
•
7 months ago
hello. here my code and it works,
but I can save the frames as well:??
myAnimation.save("mierda.jpg");
allFrames[0].save("mierda.jpg");
- import gifAnimation.*;
Gif myAnimation;
PImage[] allFrames;
PImage img;
void setup() {
allFrames =Gif.getPImages (this, "http://images.wikia.com/sonicthehedgehoges/es/images/d/de/SonicBigAni.gif");;
myAnimation = new Gif(this, "http://images.wikia.com/sonicthehedgehoges/es/images/d/de/SonicBigAni.gif");
size(myAnimation.width, myAnimation.height);
myAnimation.play();
}
int i=0;
void draw() {
while(allFrames.length>i){
image(myAnimation, 0, 0);
save("FRAME"+i+"");
i++;
}
}
but I can save the frames as well:??
myAnimation.save("mierda.jpg");
allFrames[0].save("mierda.jpg");
PImage.save() requires an absolute path. Use createImage(), or pass savePath() to save().
1