Ejemplo 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();
            }
        }
Ejemplo n.º 2
0
        public static D2D.CapStyle ToD2DCapStyle(this Media.PenLineCap cap)
        {
            switch (cap)
            {
            case Media.PenLineCap.Flat:
                return(D2D.CapStyle.Flat);

            case Media.PenLineCap.Round:
                return(D2D.CapStyle.Round);

            case Media.PenLineCap.Square:
                return(D2D.CapStyle.Square);

            case Media.PenLineCap.Triangle:
                return(D2D.CapStyle.Triangle);

            default:
                return(D2D.CapStyle.Flat);
            }
        }
Ejemplo n.º 3
0
        public static D2D.CapStyle ToSharpDX(this Jupiter.Media.PenLineCap lineCap)
        {
            switch (lineCap)
            {
            case PenLineCap.Flat:
                return(D2D.CapStyle.Flat);

            case PenLineCap.Round:
                return(D2D.CapStyle.Round);

            case PenLineCap.Square:
                return(D2D.CapStyle.Square);

            case PenLineCap.Triangle:
                return(D2D.CapStyle.Triangle);

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