please look at my example! i scale the affine transform *before *i call
drawText...

Emmanuel Pietriga schrieb am 12.02.2004 08:36:

I think there is a misunderstanding here. You have to apply the scaling
affine transform *before* calling drawing primitives such as drawText.
If you call it *after* the rendering has been done, i.e. on the rendered
buffered image, you're doing image scaling on image pixels as Phil Race
said, and there is no way you can get good font rendering with this
method (unless, maybe, if you do some antialiasing, but it would not be
that good, and would fail with large zooming factors).

Emmanuel


Michael Seele wrote:


thats right. but theres no change when i re-render my image on every
zoom change. please look at my example!

Phil Race schrieb am 11.02.2004 16:29:

Michael Seele wrote:

hi guys,
i have a big problem:
my application shows lot of rectangles which can be dragged on the
screen. the application also supports zooming, i implement this with
transform scale. is it possible to use double buffering to draw the
rectangles(they contains lot of text). when i use the standart
bufferedImage, the text looks not very good. for example i add two
screenshoots. one in 100% and one in 400%!!!
thanks




its not just fonts, its everything. look at the tick marks too.
You will need to change your approach.
In your case when you scale there's no text drawing happening.
Its just image scaling on image pixels.
ie you are pre-rendering an image at one resolution and then
scaling the image pixels to other resolutions.
That is not how to do resolution independent graphics.

You will need to re-render eveything at the requested resolution
each time.

-phil.

===========================================================================



To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA2D-INTEREST".  For general help, send
email to
[EMAIL PROTECTED] and include in the body of the message "help".


-- Mit freundlichen Gruessen Michael Seele([EMAIL PROTECTED])

G & H Softwareentwicklung GmbH     Tel.: {+49|0} 7451 - 53 706 0
Robert-Bosch-Str. 23               Fax:  {+49|0} 7451 - 53 706 90
D-72160 Horb a.N.                  http://www.guh-software.de


===========================================================================


To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff JAVA2D-INTEREST".  For general help, send
email to
[EMAIL PROTECTED] and include in the body of the message "help".



-- Emmanuel Pietriga ([EMAIL PROTECTED]) tel (mobile): +33 6 88 51 94 98 http://claribole.net

===========================================================================

To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA2D-INTEREST".  For general help, send
email to
[EMAIL PROTECTED] and include in the body of the message "help".


=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to