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

Canvas to BufferedImage while using Bufferstrategy  RSS feed

Dave Butterwick
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?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!