Hi,
> Now in order to improve the quality, we need to know the printer
> resolution. The Java almanac for 1.3 has a PageAttributes class with
> a getPrinterResolution method, but according to the index, no method
> returns such an object. How do I get the printer resolution?
PageAttributes is for 1.1/AWT API printing (ie PrintJob).
Also its notion of resolution is more like a user space to device space
scaling transform and as you point out it doesn't provide any way to query
the possible resolutions of the printer device.
Merlin (1.4) will have an API for this that can be used with PrinterJob.
We will both report the available resolutions, and let you choose which
one you want. Unfortunately that is then, and this is now ..
-phil.
> Date: Thu, 14 Dec 2000 08:43:24 +0000
> From: Jerry Huxtable <[EMAIL PROTECTED]>
> Subject: Re: [JAVA2D] Printing performance and spool size
> To: [EMAIL PROTECTED]
>
> Thanks Phil for some very useful tips on printing performance. They
> inspired me to have another look at our printing code and I've
> managed to improve the print quality massively to the point where
> we're quite happy (although we'd like some more speed!).
>
> Now in order to improve the quality, we need to know the printer
> resolution. The Java almanac for 1.3 has a PageAttributes class with
> a getPrinterResolution method, but according to the index, no method
> returns such an object. How do I get the printer resolution?
>
> Thanks,
>
> Jerry
> Jerry Huxtable
> http://www.jhlabs.com
>
> ===========================================================================
> 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".
===========================================================================
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".