Solved

Create Animated PNG

Posted on 2004-09-02
13
648 Views
Last Modified: 2009-12-16
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?
0
Comment
Question by:dr0zaxx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +1
13 Comments
 
LVL 92

Expert Comment

by:objects
ID: 11970428
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.
0
 
LVL 92

Expert Comment

by:objects
ID: 11970439
does png actually support animated images?
you may need to save as a gif.
0
 
LVL 92

Expert Comment

by:objects
ID: 11970448
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.

0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 92

Expert Comment

by:objects
ID: 11970457
0
 
LVL 18

Expert Comment

by:armoghan
ID: 11970471
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
0
 
LVL 18

Expert Comment

by:armoghan
ID: 11970473
0
 
LVL 1

Author Comment

by:dr0zaxx
ID: 11970557
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. :(
0
 
LVL 92

Expert Comment

by:objects
ID: 11970563
no and i don't think it would support animated png's anyway :(

0
 
LVL 35

Accepted Solution

by:
girionis earned 500 total points
ID: 11970607
Look at this article of how to animate PNG files:

http://developers.sun.com/techtopics/mobility/midp/ttips/animatedimages/

And this link shows how to animate sprites, although not exactly what you are looking for it might give you some clues:

http://www-106.ibm.com/developerworks/edu/wi-dw-wi-sprites-i.html
0
 
LVL 35

Expert Comment

by:girionis
ID: 11970615
0
 
LVL 18

Expert Comment

by:armoghan
ID: 11971717
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
0
 
LVL 1

Author Comment

by:dr0zaxx
ID: 12037068
Yes I cannot display animated PNG directly in J2ME. It is true.

Thanks for the answers anyway.
0
 
LVL 35

Expert Comment

by:girionis
ID: 12041680
:)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
throw exception 21 69
ejb on wildfly 5 48
Java Restore security prompts not working 10 140
Given a github repo find email address of all collaborators in that repo 1 36
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question