This site requires JavaScript, please enable it in your browser!
Greenfoot back
Kartoffelbrot
Kartoffelbrot wrote ...

2014/1/10

Scaling Graphics2D

Kartoffelbrot Kartoffelbrot

2014/1/10

#
Hello, has anyone an idea how I can scale Graphics2D objects, without losing much quality like in the GreenfootImage class? Thanks for any help.
davmac davmac

2014/1/10

#
A Graphics2D is a drawable surface, not actually an image. You can't scale it as such. You can scale what you draw onto it using the scale(...) method, and you can control anti-aliasing etc using setRenderingHints(...).
Kartoffelbrot Kartoffelbrot

2014/1/10

#
Ah ok, thank you!
Kartoffelbrot Kartoffelbrot

2014/1/10

#
Now it works really fine. I didn't know how the scale method of Graphics2D works. Thank you for your help.
davmac davmac

2014/1/11

#
No problem.
You need to login to post a reply.