Click to See Complete Forum and Search --> : ink canvas
rene12358
Feb 10th, 2009, 04:40 AM
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
chris128
Feb 10th, 2009, 06:09 AM
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
Dim SavedStrokes As New Ink.StrokeCollection
For Each stroke As Ink.Stroke In InkCanvas1.Strokes
SavedStrokes.Add(stroke)
Next
vbNeo
Feb 10th, 2009, 06:30 AM
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...
chris128
Feb 10th, 2009, 06:41 AM
king of crap more like :D (with jokes like that anyway!)
bflosabre91
Feb 12th, 2009, 04:50 PM
http://www.centrolutions.com/Home/tabid/36/EntryID/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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.