• Subject: extracting size of gifs
  • From: Joe Teff <JoeTeff@xxxxxxxxxxxxx>
  • Date: Sun, 27 Aug 2000 09:07:30 -0500

I haven't tried this, but see no reason why the following Java snippet
wouldn't work:

     ImageIcon image = new ImageIcon("image.gif");
     int height = image.getIconHeight();
     int width  = image.getIconWidth();

putting this code in a routine that uses the File class to step through
a subdirectory would allow you extract all of your images. I'll try this
out later today to see if it will really do it.
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page