This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resizing an image

 
neelam aggarwal
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
neelam aggarwal
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic