Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Canvas to BufferedImage while using Bufferstrategy

 
Dave Butterwick
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to dump the contents of a Canvas that was drawn using a Bufferstrategy to a BufferedImage using the following code I found on the net:

but the returned image is blank/black and does not contain the drawing that appears on the Canvas. I'm guessing this technique isn't correct when using a BufferStrategy.
Is that true? If not how would I go about getting the results I desire?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic