Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Retrieving a ani-gif from serialized ImageIcon

Posts: 5
  • Mark post as helpful
  • send pies
  • 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.

    Bookmark Topic Watch Topic
  • New Topic