Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Next ImageIcon Question

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
Ok,

How in the world do I write an ImageIcon to a file (as an Image [GIF,PNG,JPG,etc]?
I have is the object and google is useless.

Thanks again,
Ron

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
It has three parameters actaully, which is no problem, but my object is an ImageIcon and it wants a RenderedImage object. How do I convert it?

Thanks,
Ron

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
Here's the answer,

Java doesn't support writing GIF's (found this out the long and tedious way). So, if you need to save the gif, send it over a FileInputStream via byte[], save the image to the hard disk then load it into an imageicon or where it needs to go.

-Ron

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
Too late now Tim [bigsmile]

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top