This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes retrieve size of an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "retrieve size of an image" Watch "retrieve size of an image" New topic
Author

retrieve size of an image

Venkata Kiran
Ranch Hand

Joined: Sep 06, 2005
Posts: 30
I am displaying an image in an applet & must display another small image or text on the first image.
How do i get the size of the image being displayed.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41182
    
  45
If you're using the java.awt.Image or BufferedImage classes to display the image, those have getWidth and getHeight methods.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: retrieve size of an image
 
Similar Threads
fit the image to the button size
Image is not getting displayed
Working with Image Icon
Image size
SD card and Micro SD card