Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Create Animated PNG

Posted on 2004-09-02
13
Medium Priority
?
653 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 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 1500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

647 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