Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java2D: Graphics.create() question  RSS feed

Chris Shepherd
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me what exactly I can do with the graphics object created by the graphicsObj1.create(x,y,width,height). If I understand correctly, a graphics object cannot be directly placed or drawn into another graphics object or a BufferedImage. If thats the case, what good is returning a graphics object at all since I can't use the new sub section graphics object anywhere.

Perhaps someone can enlighten me on how to use the graphics object it returns. I understand the difference between a graphics object and an Image, I just don't understand what I can do with a parentless graphics object. I don't see any way to take its information and use it anywhere.

Thanks for any insight you guys can offer.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!