🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

scale transform and font

#731
From: Jean-Pascal Laux
Date: Tue, 26 Nov 2002 21:53
22 lines
1594 bytes
Hi,

I use AffineTransform to make a scale trasnform (7700 -> 600) and want 
to draw text in my image.
The text I draw appears only when I reduce the scale factor and not at 
the same time :

AffineTransform transform=new AffineTransform(rf,0,0,rf,-xMap*rf,-yMap*rf);
g.setFont(new Font("Helvetica",Font.PLAIN,100));

g.setTransform(transform);
 
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);

At the beginning rf=0.09. The first text appears when rf is upper to 0.25.

If I increase the font size to 200, the first text appears when rf is 
upper to 0.25 and the text is big.

Why ?

Jean-Pascal Laux
Technical Details
Message-ID: <3DE3ED43.2080304@wanadoo.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,55fb2378a62d317b,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-11-26 14:03:30 PST
Message-ID: <3DE3ED43.2080304@wanadoo.fr>
Date: Tue, 26 Nov 2002 22:53:07 +0100
From: Jean-Pascal Laux <jplaux@wanadoo.fr>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: fr-fr, fr
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: scale transform and font
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.48.187.164
X-Trace: newsgroups.borland.com 1038347587 81.48.187.164 (26 Nov 2002 13:53:07 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail