public string ToPsString() { var sb = new StringBuilder(); sb.Append(PsBezierContext.PsProlog); sb.Append(string.Format(PsBezierContext.PsSize, _drawing.Width, _drawing.Height)); foreach (var shape in _drawing.Shapes) { var bc = new PsBezierContext(); try { if (TryToRunSpiro(shape, bc)) { sb.Append(bc); } } catch (Exception ex) { Debug.WriteLine(ex.Message); Debug.WriteLine(ex.StackTrace); } } sb.Append(PsBezierContext.PsPostlog); return(sb.ToString()); }
public string ToPsString() { var sb = new StringBuilder(); sb.Append(PsBezierContext.PsProlog); sb.Append(string.Format(PsBezierContext.PsSize, _drawing.Width, _drawing.Height)); foreach (var shape in _drawing.Shapes) { var bc = new PsBezierContext(); try { if (TryToRunSpiro(shape, bc)) { sb.Append(bc); } } catch (Exception ex) { Debug.WriteLine(ex.Message); Debug.WriteLine(ex.StackTrace); } } sb.Append(PsBezierContext.PsPostlog); return sb.ToString(); }