• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

resizing an image

 
Greenhorn
Posts: 19
  • 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..
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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
  • 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: 5167
11
Netbeans IDE Opera Java
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!