• 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
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Image problem, urgent!!!

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic