Esempio n. 1
0
        public static PenLineCap ToEto(this swm.PenLineCap value)
        {
            switch (value)
            {
            case swm.PenLineCap.Flat:
                return(PenLineCap.Butt);

            case swm.PenLineCap.Round:
                return(PenLineCap.Round);

            case swm.PenLineCap.Square:
                return(PenLineCap.Square);

            default:
                throw new NotSupportedException();
            }
        }
Esempio n. 2
0
        public static Sm.PenLineCap ToMediaCap(this Wg.Stroke.StrokeCaps input)
        {
            Sm.PenLineCap cap = Sm.PenLineCap.Flat;
            switch (input)
            {
            case Wg.Stroke.StrokeCaps.Round:
                cap = Sm.PenLineCap.Round;
                break;

            case Wg.Stroke.StrokeCaps.Square:
                cap = Sm.PenLineCap.Square;
                break;

            case Wg.Stroke.StrokeCaps.Triangle:
                cap = Sm.PenLineCap.Triangle;
                break;
            }
            return(cap);
        }