Affine Transform - Negative Scaling Issues

E

Erick Crouse

I used the AffineTransform class to scale the y-axis in the opposition
direction (positive y upwards instead of downwards). That worked fine
but now I can't figure out how to draw Strings so they are NOT flipped
upside down in the inverted coordinate system.

Thanks,

-Erick
 
K

Knute Johnson

Erick said:
I used the AffineTransform class to scale the y-axis in the opposition
direction (positive y upwards instead of downwards). That worked fine
but now I can't figure out how to draw Strings so they are NOT flipped
upside down in the inverted coordinate system.

Thanks,

-Erick

A man goes to the doctor and says "when I do ... it hurts doc!" The
doctor says, "don't do that any more."
 
N

Nigel Wade

Erick said:
I used the AffineTransform class to scale the y-axis in the opposition
direction (positive y upwards instead of downwards). That worked fine
but now I can't figure out how to draw Strings so they are NOT flipped
upside down in the inverted coordinate system.

Thanks,

-Erick

You could try using two AffineTransforms. Switch between them as appropriate.
See Graphics2D.getTransform() and Graphics2D.setTransform().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top