>> You could create your own Image object,.. paint lines on that image, and
>> then render that image
[quoted text clipped - 9 lines]
> Does anyone have any ideas on how I can extract an image from a canvas?
> Everything I've tried so far has failed.
> The correct way to solve the problem (not only in Java, but in Win32,
> MacOS X, X11, etc.) is to draw to a buffered image and blit that image
> onto your canvas as required.
Thanks, that helps, but... How do I "blit" it to the canvas?
Ed.
Ed Dana - 27 Feb 2005 19:52 GMT
>> The correct way to solve the problem (not only in Java, but in Win32,
>> MacOS X, X11, etc.) is to draw to a buffered image and blit that image
>> onto your canvas as required.
>
> Thanks, that helps, but... How do I "blit" it to the canvas?
By George, I think I've got it! :)
Rather than blitting, I'm drawing to the canvas first, and when the
stroke is completed, I draw to the Buffered Image. Seems to work so far.
Thanks all.
Ed.
johndoe@example.com - 28 Feb 2005 19:51 GMT
> Thanks, that helps, but... How do I "blit" it to the canvas?
Graphics.drawImage()