BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 246766 thumbnail
User 354953 avatar

By mkyong
via mkyong.com
Published: Oct 01 2009 / 19:44

A simple Java image re-size example, please share your java image tips if you know some :)
  • 19
  • 0
  • 4015
  • 25

Comments

Add your comment
User 457019 avatar

Benjamin Winterberg replied ago:

0 votes Vote down Vote up Reply

You can just use BufferedImage#getScaledInstance()

User 354953 avatar

mkyong replied ago:

0 votes Vote down Vote up Reply

Can BufferedImage#getScaledInstance() specify the width and height of an image?

User 174509 avatar

philho replied ago:

0 votes Vote down Vote up Reply

Just take a look... :-) (answer is: yes)
But see also http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html (The Perils of Image.getScaledInstance()) why one must not use this... :-D

User 354953 avatar

mkyong replied ago:

0 votes Vote down Vote up Reply

wow...this article is great...thanks for sharing this

User 39743 avatar

dn68495 replied ago:

0 votes Vote down Vote up Reply
User 354953 avatar

mkyong replied ago:

0 votes Vote down Vote up Reply

Thanks for the example provided, really appreciated it

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.