public void Dump(IndentedTextWriter w) { FillStyles.Dump(w); LineStyles.Dump(w); w.WriteLine("Records: "); w.Indent++; for (int i = 0; i < ShapeRecords.Count; i++) { ShapeRecords[i].Dump(w); w.WriteLine(); } w.Indent--; }
public void Dump(IndentedTextWriter w) { w.Write("Style Change: dx:" + MoveDeltaX + " dy:" + MoveDeltaY + " fs0:" + FillStyle0 + " fs1:" + FillStyle1 + " ls: " + LineStyle); // dump new styles, if any. Thanks to Antti Huovilainen for pointing out this bug : ) if (HasNewStyles) { w.WriteLine(""); w.WriteLine("New Styles:"); if (FillStyles != null) { FillStyles.Dump(w); } if (LineStyles != null) { LineStyles.Dump(w); } } }