Пример #1
0
        private void Write(ISwfStreamWriter writer, IShapeRecord record, bool allowBigArray, ref uint fillBitsCount, ref uint lineBitsCount)
        {
            var ctx = new ShapeRecordWriteContext {
                FillStyleBits = fillBitsCount,
                LineStyleBits = lineBitsCount,
                AllowBigArray = allowBigArray,
                Writer        = writer
            };

            ctx           = record.AcceptVisitor(this, ctx);
            fillBitsCount = ctx.FillStyleBits;
            lineBitsCount = ctx.LineStyleBits;
        }
Пример #2
0
 public static XElement ToXml(IShapeRecord shapeRecord)
 {
     return(shapeRecord.AcceptVisitor(_writer, null));
 }