This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Graphics2D Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Graphics2D" Watch "Graphics2D" New topic
Author

Graphics2D

pride Jimmy
Greenhorn

Joined: May 05, 2003
Posts: 5
How can I get the instance of Graphics2D?(exclude passed as parameters)
Thanks for any answer!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9137
    
    9

In Java 2, the Graphics object passed to a Component's paint method is actually a Graphics2D instance. Cast it.


[How To Ask Questions On JavaRanch]
 
Have you checked out Aspose?
 
subject: Graphics2D
 
It's not a secret anymore!