Take a look at the javax.imagio package for writing jpegs.
ImagIO.write(...) is a simple way to save jpegs. I am not sure how to
change the DPI. I think that depends on the number of pixels in your image.

Rob Ross wrote:

Ok I have figured out how to do steps 1-3. But I don't know if I have to do
something special when I draw into the Graphics2D so that later when I save
it as a JPEG, I can get my resolution of 150 DPI, which is more than the
standard ~72 DPI of a screen-drawn image.

So, say I have drawn a 100x100 pixel blue square in my Graphics (at 72
DPI)...how do I turn it into a JPEG at 150 DPI?

Thanks.


Rob




=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to