🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
1 messages
1 total messages Started by Jean-Pascal Laux Tue, 26 Nov 2002 21:53
scale transform and font
#731
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads