• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Retrieving a ani-gif from serialized ImageIcon

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I have a small problem which I hope somebody can help me with.

I am designing an iso-metric game application. One of the features is a Sprite design feature. The user selects an Image and other attributes such as transparency, a Polygon and name. The user saves an array that contains all the Sprites in that so-called Library. Some of the images are gif-ani.I noticed that it was neccesary to convert the Image to an ImageIcon because Image is not serializable. Thats fine. But when you inflate the object (Sprite) and cast the ImageIcon as an Image the Gif animation does not work. Its just a static image. Something has been lost along the way.

I believe if you use ImageObserver that can help.

If anyone has experience in serializing an Image which is an ani-gif and then inflating it and getting that ani-gif up and running again I would love to hear you method.

Regards.
 
reply
    Bookmark Topic Watch Topic
  • New Topic