How to draw image in different dpi?
I wonder is there any approach can be used to draw a image in different dpi, such as 144dpi, in a JPanel?
'cause my image processed from other tools is not good, if I can draw image in a high dpi, then the image will looks much better, though the image becomes smaller.
Note: no SCALE!
[305 byte] By [
Joe_Kinga] at [2007-10-3 3:14:56]

I have a image which is 152dpi, then, how does the Widows draws this image? It looks much better than scale the 72dpi image to the same size. Really puzzled-_-
I am not sure i understand what are high DPI images.
AFAIK, images are measured in pixels (aka dots).
DPI is dot per inch, i.e. on higher dpi scree same image will just look smaller.
In other words if you want to make image that will be 1 inch wide on 152 dpi screen you simply have to create java image of width 152.
Note that you still need to scale all your drawings to that image accordingly.
Am i missing something?
Hi all, Its not so hard ;)Monitors have a default resolution of 72dpi.If you reduce an image scale, you are just lossing some pixels not reducing pixel size. ( inverse if you are increasssing its scale )Hope it helps.GL & HF