• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

change the dpi of an image displayed in applet

 
f jimenez
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can you change the dpi of an image in java?

i need to have a functionality that can change the dpi of the image displayed on an applet and somehow dispaly it again on screen.

can somebody please assist me on this?

i need guidance in here...

thanks a lot...
[ March 21, 2007: Message edited by: f jimenez ]
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google for "Java Advanced Imaging".
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all you're doing is displaying the image on the screen, then changing the DPI doesn't make much sense, because screens have a fixed DPI. Are you talking about scaling the image? Then you can use the java.awt.Image.getScaledInstance() method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic