Again, thanks!  Exactly what I was looking for...

Mark

On Sep 23, 2006, at 1:48 PM, John Kubie wrote:

to extrapolate a bit further.


1. mac a picture the size of the clipboard. The picture (pic) should be a window property.

    pic=new picture(canvas1.width, canvas1.height,32)

you may want to re-initialize pic with every paint event, by putting this at the top, or initialize this elsewhere.


2. put the code you now have in the canvas' paint event into making a picture. You can do this at the top of the canvas' paint event.

3. Later in the paint event draw the picture onto the canvas

    g.drawpicture pic 0,0

4. when you want to copy the image to the clipboard, pic can be put into the clipboard. It will contain the most recent canvas image.

On Sep 23, 2006, at 2:28 PM, Phil M wrote:

It is possible to copy a Picture, but not a Canvas. So, if you want to copy the contents of a Canvas, you will need to do all of your drawing into a Picture instead (and draw the Picture to a Canvas).

Once you have a Picture, use the Clipboard class to copy/paste between applications.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to