This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes animattion in a GIF image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "animattion in a GIF image" Watch "animattion in a GIF image" New topic
Author

animattion in a GIF image

daniel desouza
Greenhorn

Joined: Nov 26, 2003
Posts: 7
hi everybody,
i am having a GIF image.which contans a football players photo and ball.i want to make an animation so that the player kicks the ball and ball enters into net.
i want to do it compleately in java.may i use all low level maths and coding?.
anyone can help me?.cool links are welcome.
thanks a lot
daniel desouza
Greenhorn

Joined: Nov 26, 2003
Posts: 7
no one availeable for some coplex issues?.
it's urgent to me.anybody experienced please help.my problom is
i am having an image.i need some movements in that image by making it as a java applet.can java2D provide enough methods?

thanks in advance
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

I think it's the "completely in java" part that has people speechless.
If you first carve up the image in an image-editing program, so you have separate player and football pictures, then it's trivial; the JDK comes with many examples of animated-image applets.


[Jess in Action][AskingGoodQuestions]
daniel desouza
Greenhorn

Joined: Nov 26, 2003
Posts: 7
Originally posted by Ernest Friedman-Hill:
I think it's the "completely in java" part that has people speechless.
If you first carve up the image in an image-editing program, so you have separate player and football pictures, then it's trivial; the JDK comes with many examples of animated-image applets.

it's ok.i am willing to split the image into players,ball,net ect.but the program seems a misery to me.i am in need of serious help.
anyone did some animation work using java2D?
thanks in advance.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

As I said, look in the demos that come with the JDK. There are at least half a dozen demos that do what you want.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Here's a really quick example... you're probably going to be getting the images from files instead of drawing them, but the animation code is pretty straightforward in there too. Don't look too closely at the graphics...



-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
daniel desouza
Greenhorn

Joined: Nov 26, 2003
Posts: 7
oh nate!! u r great!!
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
Nate, Nate, he's our man, if he can't do it no one can!
Sorry, the football and the "Nate ur great" got me going
brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
 
Don't get me started about those stupid light bulbs.
 
subject: animattion in a GIF image
 
Similar Threads
Using Threads
Declaring Enums in a class
OOP Object Construction
Getting the Key from a properties file
WA #1.....word association