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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i get image width and height?

Status
Not open for further replies.

mountainbiker

Programmer
Aug 21, 2002
122
GB
i need a little simple java class file that if passed a image path/name (e.g., c:\pic1.gif, h:\pic2.jpg, etc.) that has two public static methods "returnWidth" and "returnHeight" returning the pixel width and height respectivitely of the passed image.

does anyone know if there is a similar existing class or who can point me in the right direction to create it?

 
what format are the images in (ie gif/jpg/tif/) etc ...
 
yes jpg, gif, png, etc. -- but prob okay to skip tiff and animated gif.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top