Exemplo n.º 1
0
        private static CanvasEdgeBehavior GetSpreadMethod(SvgSpreadMethodType spreadMethod)
        {
            switch (spreadMethod)
            {
            case SvgSpreadMethodType.Reflect: return(CanvasEdgeBehavior.Mirror);

            case SvgSpreadMethodType.Repeat: return(CanvasEdgeBehavior.Wrap);
            }
            return(CanvasEdgeBehavior.Clamp);
        }
Exemplo n.º 2
0
        public static string AsString(this SvgSpreadMethodType spreadMethodType)
        {
            switch (spreadMethodType)
            {
            case SvgSpreadMethodType.Pad: return("pad");

            case SvgSpreadMethodType.Reflect: return("reflect");

            case SvgSpreadMethodType.Repeat: return("repeat");
            }
            throw new ArgumentException(nameof(spreadMethodType));
        }