• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic