Esempio n. 1
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();
            }
        }
Esempio n. 2
0
        public static D2D.LineJoin ToD2DLineJoin(this Media.PenLineJoin lineJoin)
        {
            switch (lineJoin)
            {
            case Media.PenLineJoin.Bevel:
                return(D2D.LineJoin.Bevel);

            case Media.PenLineJoin.Miter:
                return(D2D.LineJoin.Miter);

            case Media.PenLineJoin.Round:
                return(D2D.LineJoin.Round);

            default:
                return(D2D.LineJoin.Bevel);
            }
        }
        public static D2D.LineJoin ToSharpDX(this Jupiter.Media.PenLineJoin lineJoin)
        {
            switch (lineJoin)
            {
            case PenLineJoin.Miter:
                return(D2D.LineJoin.Miter);

            case PenLineJoin.Bevel:
                return(D2D.LineJoin.Bevel);

            case PenLineJoin.Round:
                return(D2D.LineJoin.Round);

            default:
                throw new NotSupportedException("Unexpected PenLineJoin value - not available in Windows 8 RTM.");
            }
        }