|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Taking advantage of printer's native resolutionSince I have not received an answer to my previous question, I will try to simplify it even further.
For an arbitrary printer, how can I print a single line that is one printer "dot" wide by N dots long, ie, print the finest line the printer is capable of printing? For a 300dpi printer this line would be a line 1/300" wide. For a 2400dpi printer this would be a line 1/2400" wide, etc. Thanks! [Message sent by forum member 'robross' (robross)] http://forums.java.net/jive/thread.jspa?messageID=287172 =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: Taking advantage of printer's native resolutionIn the print() method look at the graphics transform and scale down
accordingly. Eg if the printer is 360 dpi, then the transform will report a scale of (5,5) so you need to apply a user scale of 1/5, 1/5. Then a 1 pixel user space line will be 1 device pixel. FYI printers that say they are 2400 dpi are not necessarily truely that fine so it may not be that a line is 1/2400 but that's a matter for the printer vendor. -phil. java2d@... wrote: > Since I have not received an answer to my previous question, I will try to simplify it even further. > > For an arbitrary printer, how can I print a single line that is one printer "dot" wide by N dots long, ie, print the finest line the printer is capable of printing? > > For a 300dpi printer this line would be a line 1/300" wide. For a 2400dpi printer this would be a line 1/2400" wide, etc. > > Thanks! > [Message sent by forum member 'robross' (robross)] > > http://forums.java.net/jive/thread.jspa?messageID=287172 > > =========================================================================== > To unsubscribe, send email to listserv@... and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > listserv@... and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
|
|
Re: Taking advantage of printer's native resolutionA line width of 0 should produce the thinnest line representable on the
device. If the line disappears then that is a bug... ...jim java2d@... wrote: > Since I have not received an answer to my previous question, I will try to simplify it even further. > > For an arbitrary printer, how can I print a single line that is one printer "dot" wide by N dots long, ie, print the finest line the printer is capable of printing? > > For a 300dpi printer this line would be a line 1/300" wide. For a 2400dpi printer this would be a line 1/2400" wide, etc. > > Thanks! > [Message sent by forum member 'robross' (robross)] > > http://forums.java.net/jive/thread.jspa?messageID=287172 > > =========================================================================== > To unsubscribe, send email to listserv@... and include in the body > of the message "signoff JAVA2D-INTEREST". For general help, send email to > listserv@... and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@... and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to listserv@... and include in the body of the message "help". |
| Free Forum Powered by Nabble | Forum Help |