Exemplo n.º 1
0
 public bool ZoomOut(SVGControl svgControl)
 {
     if (Math.Round(svgControl.Scale, 1) < MaxScale)
     {
         svgControl.Scale = Math.Round(svgControl.Scale, 1) + 0.1;
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public bool ZoomIn(SVGControl svgControl)
 {
     if (Math.Round(svgControl.Scale, 1) > 0.1)
     {
         svgControl.Scale = Math.Round(svgControl.Scale, 1) - 0.1;
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
        public void NewInput(string value, SVGControl svgControl)
        {
            var x = int.Parse(value);

            if (x > 340)
            {
                x = 340;
            }
            else if (x < 1)
            {
                x = 1;
            }
            svgControl.Scale = Math.Round(MaxScale - (x / 100.0));
        }