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]
# 1
The real question is if your monitor support more than 72dpis : ) I don't think is possible to get a better look image in this way... You only will need to increment dpi if you are interested in print ( at 300 dpi's by example ) Luck
D4nt3_a at 2007-7-14 21:06:12 > top of Java-index,Security,Cryptography...
# 2
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-_-
Joe_Kinga at 2007-7-14 21:06:12 > top of Java-index,Security,Cryptography...
# 3

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?

neigora at 2007-7-14 21:06:12 > top of Java-index,Security,Cryptography...
# 4
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
D4nt3_a at 2007-7-14 21:06:12 > top of Java-index,Security,Cryptography...