Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }