private string GetAllPoints(InkCanvas oInkCanvas) { int iS = -1; int iP; string sP = ""; string s = ""; string r = "\r\n"; System.Windows.Input.StylusPointCollection colStylusPoints; foreach (Stroke oS in oInkCanvas.Strokes) { iP = -1; // Header for each Stroke. if (oS.DrawingAttributes.FitToCurve == true) { colStylusPoints = oS.GetBezierStylusPoints(); foreach (StylusPoint oPoint in colStylusPoints) { iP += 1; s +=((int)oPoint.X).ToString() + "\t" + ((int)oPoint.Y).ToString() + r; } } else { colStylusPoints = oS.StylusPoints; foreach (StylusPoint oPoint in colStylusPoints) { iP += 1; s += ((int)oPoint.X).ToString() + "\t" + ((int)oPoint.Y).ToString() + r; } } } return s; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)