Beispiel #1
0
        public static Sm.PenLineJoin ToMediaJoin(this Wg.Stroke.StrokeCorners input)
        {
            Sm.PenLineJoin corner = Sm.PenLineJoin.Round;
            switch (input)
            {
            case Wg.Stroke.StrokeCorners.Bevel:
                corner = Sm.PenLineJoin.Bevel;
                break;

            case Wg.Stroke.StrokeCorners.Miter:
                corner = Sm.PenLineJoin.Miter;
                break;
            }
            return(corner);
        }
Beispiel #2
0
        public static PenLineJoin ToEto(this swm.PenLineJoin value)
        {
            switch (value)
            {
            case swm.PenLineJoin.Bevel:
                return(PenLineJoin.Bevel);

            case swm.PenLineJoin.Miter:
                return(PenLineJoin.Miter);

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

            default:
                throw new NotSupportedException();
            }
        }