public static XElement ToXml(Glyph glyph) { var xShape = new XElement("GlyphShape"); var xEdges = new XElement("edges"); foreach (var shapeRecord in glyph.Records) { xEdges.Add(XShapeRecord.ToXml(shapeRecord)); } xShape.Add(xEdges); return(xShape); }
public static XElement ToXml(IList <IShapeRecordRGB> records) { var xShape = new XElement("Shape"); var xEdges = new XElement("edges"); foreach (var shapeRecord in records) { xEdges.Add(XShapeRecord.ToXml(shapeRecord)); } xShape.Add(xEdges); return(xShape); }