Article View: pl.comp.lang.java
Article #141742Drukowanie w Java Printing API.
From: Yacho
Date: Thu, 16 Oct 2008 22:52
Date: Thu, 16 Oct 2008 22:52
31 lines
1859 bytes
1859 bytes
Witam !
Stoje przed nastepujacym problemem - moze ktos przerabial i podpowie.
Wiadomo ze strona papieru i ekran maja zupelnie inne wymiary stąd
rysowanie na obiekcie Graphics2D za pomoca pikseli wyglada OK na ekranie
- na kartce juz niekoniecznie.
w klasie PageFormat jest metoda :
public double[] getMatrix()
Returns a transformation matrix that translates user space
rendering to the requested orientation of the page. The values are
placed into the array as { m00, m10, m01, m11, m02, m12} in the form
required by the AffineTransform constructor.
Returns:
the matrix used to translate user space rendering to the
orientation of the page.
Rozumiem że powyższe zwroci mi baze do stworzenia AffineTransform który
bedzie tłumaczył współrzędne "ekranowe" na "drukarkowe" ?
Czyli po potraktowaniu ta transformacja kolo o promieniu R bedzie
wzgledem ekranu tak samo duze jak wzgledem obszaru na kartce ?
Jesli sie myle niech mnie ktos wyprowadzi z bledu proszę :)
--
Jacek
Technical Details
Message-ID:
<gd8gk0$mdc$1@inews.gazeta.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: Yacho <yacho1984@[googlemail].com> Newsgroups: pl.comp.lang.java Subject: Drukowanie w Java Printing API. Date: Fri, 17 Oct 2008 00:52:48 +0200 Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 31 Message-ID: <gd8gk0$mdc$1@inews.gazeta.pl> NNTP-Posting-Host: chello089074165208.chello.pl Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1224197568 22956 89.74.165.208 (16 Oct 2008 22:52:48 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Thu, 16 Oct 2008 22:52:48 +0000 (UTC) X-User: yacho1984 X-Antivirus: avast! (VPS 081015-0, 2008-10-15), Outbound message X-Antivirus-Status: Clean User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit