Resolution?

dijo1
dijo1 used Ask the Experts™
on
I have problems with the print-outs!
Is it really true that I just can state points in a 72 dpi? It is a way to rough resolution to print with!!

How can I make the print-outs better?
I can hardly see the curves.

How can I past this difficulty?

There is a method called setPrinterResolution, but how do I use it? Does it help? (I don't use JobAttributes, PagesAttributes or PrintJob.)

I have this row in my code:

PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
  aset.add(new MediaPrintableArea(imgX, imgY, imgWidth, imgHeight, MediaPrintableArea.INCH/72));

What does these parameters mean? Why divide it with 72?

Many questions, but I hope someone will answer!



/Diana

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
There are 72 points in an inch.

Author

Commented:
Where? On the screen there are 96 dots per inch. Where is it 72 dots per inch? Doesn't Java support more than 72 dpi?
It has to!

/Diana
Commented:
The Point simply is a measure of length, being 1/72 of an inch.  It is the traditional measure used by (human) printers, the Windows API and font designers.  Printer drivers handle the conversion to other units.

If you want to be pedantic, there is a minute difference between the continental European point and the USA/UK one but it is so small as not to be worth bothering about.

There are 20 Visual Basic twips to the point, hence the apparently weird conversion factor of 1440 twips to the inch.

There are various API calls that will tell you the parameters of your output device; look up DeviceCapabilities on MSDN.  If you want more on this, ask and I will try to oblige - but it won't be before Monday.

Commented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

-  Points for StewartJ

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venabili
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial