Пример #1
0
        internal override Pnt2d?Write(StringBuilder sb, Pnt2d?lastPnt, SvgConverter conv)
        {
            if (!(lastPnt.HasValue && conv.AreEqual(lastPnt.Value, Start)))
            {
                sb.AppendFormat("M{0},{1} ", conv.ToSvgLength(Start.X), conv.ToSvgLength(-Start.Y));
            }

            sb.AppendFormat("Q{0},{1} {2},{3} ", conv.ToSvgLength(C1.X), conv.ToSvgLength(-C1.Y), conv.ToSvgLength(End.X), conv.ToSvgLength(-End.Y));
            return(End);
        }
Пример #2
0
        internal override Pnt2d?Write(StringBuilder sb, Pnt2d?lastPnt, SvgConverter conv)
        {
            if (!(lastPnt.HasValue && conv.AreEqual(lastPnt.Value, Start)))
            {
                sb.AppendFormat("M{0},{1} ", conv.ToSvgLength(Start.X), conv.ToSvgLength(-Start.Y));
            }

            sb.AppendFormat("A{0},{1} {2} {3} {4} {5},{6} ",
                            conv.ToSvgLength(RadiusX), conv.ToSvgLength(RadiusY),
                            conv.ToSvgValue(Angle),
                            (uint)Size, (uint)Sweep,
                            conv.ToSvgLength(End.X), conv.ToSvgLength(-End.Y));
            return(End);
        }