aspose file tools*
The moose likes Java in General and the fly likes change the dpi of an image displayed in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "change the dpi of an image displayed in applet" Watch "change the dpi of an image displayed in applet" New topic
Author

change the dpi of an image displayed in applet

f jimenez
Ranch Hand

Joined: Mar 14, 2007
Posts: 30
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 ]

if you can't be the sun, be a star...<br />もし たいように なれないたら ほしに なれ。
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Google for "Java Advanced Imaging".


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change the dpi of an image displayed in applet
 
Similar Threads
get information from TIFF files
JAI, Image CMYK to RGB
How to change the DPI of a image
Save Component(containing jpeg and JLabels) as JPEG? Is there a package for this?
How to change the DPI of a image