Graphics2D from createImage()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Zukowski
Posted On:   Thursday, June 14, 2001 08:59 PM

If I create an image with createImage() and get its graphics with getGraphics(), can I cast the Graphics object returned to a Graphics2D object?

Re: Graphics2D from createImage()

Posted By:   John_Zukowski  
Posted On:   Thursday, June 14, 2001 09:00 PM

Yes. The Graphics object returned is actually a Graphics2D object, assuming you are using the Java 2 platform (JDK 1.2 or greater).
About | Sitemap | Contact