Canvas to BufferedImage while using Bufferstrategy
posted 8 years ago
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?
Conformity is the jailer of freedom and the enemy of growth.