Is it possible to save InkCanvas stroke collection to svg image? Only thing I can find is that I can save the strokes as GIF with embedded ISF (Ink Serialized Format) or maybe render them as bitmap. I want to save strokes in vector format that can be interoperable with other platforms (like web).
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I figured it out.
Here are the steps
StrokeCollection
PathGeometry
of eachStroke
by callingGetGeometry
function and then callingGetOutlinedPathGeometry
.Figures
out ofGeometry
. I am doing it by saving thePathGeometry
to XAML and then parsing theFigures
attribute byXElement.Parse
.I am using SVG Rendering Library to create SVG document.