🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2025

How to sett a fixed scale in Java 2D

#2025
From: Andr� Vink
Date: Wed, 27 Jun 2001 07:41
11 lines
1906 bytes
I recently started to evaluate java for a future development. I succeeded in
using Java 2D for printing purposes but not in scaling user coordinates to
1/100 mm. I assume it has something to do with the AffineTransform class.

1. What should I do te scale user space coordinates to 1/100 of millimeteers
(so 1450 x 1200 = 14.5mm x 12.00mm when printing)?
2. How can I shift the origing to the lower left, positive x to the right
and positive y to up?

Thank you for your answers,
Andr� Vink
Technical Details
Message-ID: <9hc2ma$h43$1@news1.xs4all.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 113ae9,4d5000620867b7a6,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f74b3,4d5000620867b7a6,start
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 10a146,4d5000620867b7a6,start
X-Google-Attributes: gid10a146,public
X-Google-Thread: 1089d0,4d5000620867b7a6,start
X-Google-Attributes: gid1089d0,public
X-Google-Thread: fecd1,4d5000620867b7a6,start
X-Google-Attributes: gidfecd1,public
X-Google-ArrivalTime: 2001-06-27 00:40:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!not-for-mail
From: "Andr� Vink" <djevink@xs4all.nl>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.api,comp.lang.java.help,comp.lang.java.programmer
Subject: How to sett a fixed scale in Java 2D
Date: Wed, 27 Jun 2001 09:41:33 +0200
Organization: XS4ALL Internet BV
Lines: 13
Message-ID: <9hc2ma$h43$1@news1.xs4all.nl>
NNTP-Posting-Host: s340-isdn2645.dial.xs4all.nl
X-Trace: news1.xs4all.nl 993627658 17539 194.109.190.85 (27 Jun 2001 07:40:58 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 27 Jun 2001 07:40:58 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400