• Post Reply Bookmark Topic Watch Topic
  • New Topic

image resizing

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This does resizing of image but quality in unbearable.
Anyone got better way?

Thanks.
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Swing / AWT.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a good treatise on image scaling in Java: The Perils of Image.getScaledInstance(). Look for discussion of the "bilinear" and "bicubic" rendering hints.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Here's a good treatise on image scaling in Java: The Perils of Image.getScaledInstance(). Look for discussion of the "bilinear" and "bicubic" rendering hints.


Thanks Ulf for URL.
I was not using getScaledInstance() though.

I changed my code as explained:


But no improvement in quality...
 
Carey Brown
Bartender
Posts: 2239
28
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This method might help you if quality is your biggest concern.


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!