Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 743
  • Last Modified:

Speeding up animated GIF in a Java image object.

I am successfully loading in working, flapping mutalisks for my game proof of concept demo.

the animated GIF at

http://jamescomp.com/mutalisk.gif

And in my game, it appears to be the same speed as in a browser.

But, in Starcraft itself, the mutalisks aren't lazy and unmotivated like the speed of this GIF. I don't think.

Is it possible for me to jack up the frame rate of these unmotivated mutalisks? They are embarrassing.

0
beavoid
Asked:
beavoid
  • 3
  • 2
1 Solution
 
for_yanCommented:
How is it connected to Java Programming Language?

It is animated GIF - and these are soem advice on how to speed it up
using dofferent programs:

http://www.dslreports.com/faq/3665
0
 
beavoidAuthor Commented:
Well, sometimes things like this can be done in code. That's all
0
 
for_yanCommented:
I think you should be able to do it in java code by loading different images one after another.
0
 
for_yanCommented:


perhaps this class would be of use:
http://www.java2s.com/Code/Java/2D-Graphics-GUI/AnimatedGifEncoderEncodesaGIFfileconsistingofoneormoreframes.htm

 Example of its use:
     AnimatedGifEncoder e = new AnimatedGifEncoder();
      e.start(outputFileName);
      e.setDelay(1000);   // 1 frame per sec
      e.addFrame(image1);
      e.addFrame(image2);
      e.finish();
0
 
beavoidAuthor Commented:
I'd rather not have to get anything new.
I have maromedia flash.

Can it speed up my lazy mutalisk and keep BG transparency?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now