aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes resizing an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "resizing an image" Watch "resizing an image" New topic
Author

resizing an image

neelam aggarwal
Greenhorn

Joined: Jul 18, 2011
Posts: 19
how to resize/scale an image to fit to a label ..... i found a method named "getScaledImage" but dont know how to use it... help..
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

neelam aggarwal wrote:i found a method named "getScaledImage" but dont know how to use it... help..


Seeing as there's no method with that name in the standard JDK, you need to ask wherever you got the class that has that method.


luck, db
There are no new questions, but there may be new answers.
neelam aggarwal
Greenhorn

Joined: Jul 18, 2011
Posts: 19
i just surf on net & found this.... but this doesn't work as you said it does not exist.....
so please tell me how can i scale my image to fit in label....
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

There are at least two ways. One can be found in the API for BufferedImage and another in the API for java.awt.Graphics
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resizing an image
 
Similar Threads
image
Re: Create Image in J2ME
paint method problem
Jframe
add image