|
-
Feb 10th, 2009, 04:40 AM
#1
Thread Starter
Member
ink canvas
Hi,
I have a ink canvas control in my application. When the user draw the graphic they want in the ink canvas and click on ok button, that graphic that the user had drawn will be saved. Can it be done...? If yes, can it be done using Visual Studio (VB.NET). I'm using WPF application
Thanks
-
Feb 10th, 2009, 06:09 AM
#2
Re: ink canvas
The ink canvas has a Strokes property which stores all of the lines that have been drawn onto it so you can use that to save/load them 
For example:
Storing in a variable
vb.net Code:
Dim SavedStrokes As New Ink.StrokeCollection
For Each stroke As Ink.Stroke In InkCanvas1.Strokes
SavedStrokes.Add(stroke)
Next
Last edited by chris128; Feb 10th, 2009 at 06:12 AM.
-
Feb 10th, 2009, 06:30 AM
#3
Frenzied Member
Re: ink canvas
Also, if it's newly drawn you should be careful not to smother it all over the file when saving.
...
I'm the king of hi-larious...
"Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
- Zack de la Rocha
Hear me roar.
-
Feb 10th, 2009, 06:41 AM
#4
Re: ink canvas
king of crap more like (with jokes like that anyway!)
-
Feb 12th, 2009, 04:50 PM
#5
Lively Member
Re: ink canvas
http://www.centrolutions.com/Home/ta...5/Default.aspx
i know the link is c# but theres not much to it, so it was easy to convert to vb. give it a shot and see how far you can get. if not ill dig through my code to help u
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|