Images, Device dependent? Can they be device independent?
I'm just getting into my first real Java app, which is for playing card games. I have images for cards in a PNG file, and I can load that into Image objects in java which it says is in a device-dependent form. It says this is not a serializable object (Image) that can be recreated on different machines.
I would like to be able to run an Applet with images that go with it, and if those images can come from an image file (above-mentioned PNG) that downloads with the applet, or if they can be put in data form then that can be serialized to/from a database.
1) If I put the image files in with the JAR for the applet, will they be accessible to loading them from disk, or do they have to be un-jared for access?
2) Is there a device-independent way to put image data (so i can put that into my db)?
3) How do you generally handle graphics images that are needed in distributed programs?