Link to home
Start Free TrialLog in
Avatar of dr0zaxx
dr0zaxx

asked on

Create Animated PNG

Hi guys,

I know how to use the ImageIO class to create a PNG image. However, is it possible to create an animated PNG? If yes, how? If no, any third party libraries for download?
Avatar of Mick Barry
Mick Barry
Flag of Australia image

not sure, perhaps have a dig thru:
http://www.geocities.com/marcoschmidt.geo/java-image-coding.html

will let u know if i come across anything.
does png actually support animated images?
you may need to save as a gif.
theres a draft extension of the standard to support animation:
http://www.vlad1.com/~vladimir/projects/apng/

don't like your chances of finding a java encoder though, and if you did you then have the problem that most things will only read the first frame anyway.

If you have more than two PNG images, you can use the follownig method to do animation
http://www.rgagnon.com/javadetails/java-0262.html
Avatar of dr0zaxx
dr0zaxx

ASKER

I cannot use GIF, because I need to display the animation on a mobile phone. J2ME does not support animated GIF.

Looks like I have no luck. :(
no and i don't think it would support animated png's anyway :(

ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
dr0zaxx :
I have posted two links above with the help of which you can implement animation of PNG files. You just have to display them after specific interval
Avatar of dr0zaxx

ASKER

Yes I cannot display animated PNG directly in J2ME. It is true.

Thanks for the answers anyway.