• Post Reply Bookmark Topic Watch Topic
  • New Topic

Image problem, urgent!!!  RSS feed

 
prashant komaragiri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to convert my Image object into a *.gif file . How can i do it ? thanks in advance .
prashant
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi You could try this :
Image image;
ImageViewer imageViewer1 = new ImageViewer();
try
{
imageViewer1.setImageURL(symantec.itools.net.RelativeURL.getURL("yourgif.gif or the URL of your gif"));
}
catch (java.net.MalformedURLException error)
image = imageViewer1.getImage();
ImageIcon icon = new ImageIcon(image);
This should take care of your problem.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Prashant,
Look for third party classes.
I searched for "java gif encoder" and found the following.
http://jmge.net/java/gifenc/
Good Luck,
Manfred.
 
prashant komaragiri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thankx a lot Meghna,Manfred it was of great help . meghna i want to know if these classes are free?? and where r they avalilable for download .
prashant
 
matt hooker
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
prashant, as our friendly bartender (Manfred) says, try http://jmge.net/java/gifenc/. That should sort you out.
 
prashant komaragiri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya , thanx matt , that solved my problem
prashant
Originally posted by matt hooker:
prashant, as our friendly bartender (Manfred) says, try http://jmge.net/java/gifenc/. That should sort you out.

 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which classes are you talking about here ?!! Is it Image & ImageViewer ?!! If so, you don't have to download it. It should be available in AWT Multimedia(ImageViewer). Image is again an abstract class in AWT.
Meghna
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!