Пример #1
0
        public static string ToSKStrokeCap(this SP.StrokeCap strokeCap)
        {
            switch (strokeCap)
            {
            default:
            case SP.StrokeCap.Butt:
                return("SKStrokeCap.Butt");

            case SP.StrokeCap.Round:
                return("SKStrokeCap.Round");

            case SP.StrokeCap.Square:
                return("SKStrokeCap.Square");
            }
        }
Пример #2
0
        private static LineCap ToLineCap(SP.StrokeCap strokeCap)
        {
            switch (strokeCap)
            {
            default:
            case SP.StrokeCap.Butt:
                return(LineCap.Flat);

            case SP.StrokeCap.Round:
                return(LineCap.Round);

            case SP.StrokeCap.Square:
                return(LineCap.Square);
            }
        }