At 4:42 PM +0000 1/10/06, Hugh Neill wrote:

How do I take the picture on a canvas and transfer it to a drawing package
(Freehand 10) in such a way that I can manipulate the lines and curves in
the drawing package?

Well, first, a canvas doesn't in general have a picture on it -- it's just a rectangular portion of a window in which you can draw stuff in the Paint event. (It also has a Background property to which you can assign a picture to be used as the background of any painting you do... but i never make use of this myself.)

So, let's reduce the question to: how do you make a vector image (one with individual lines and other objects rather than pixels) that another app can read? Here's how you do it:

1. Create a picture with NewPicture. You may pass in any bit depth here, but if you're only going to have vector graphics in it, give it a bit depth of 0.

2. Now, create your drawing using the various Object2D subclasses (e.g. CurveShape, StringShape, RectShape, etc.), and stuff these into the .Objects property of your picture.

3. Finally, either (a) put this on the clipboard in the usual manner, or (b) save it to a file using FolderItem.SaveAsPicture, passing in FolderItem.SaveAsDefaultVector for the second parameter.

That should do it.

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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