Exemplo n.º 1
0
        public static string ToLower(this InterpolaterMode value)
        {
            switch (value)
            {
            case InterpolaterMode.Lanczos3: return("lanczos3");
            }

            return(value.ToString().ToLower());
        }
Exemplo n.º 2
0
        public ScaleTransform(int width, int height, InterpolaterMode mode)
        {
            if (width < 0 || width > Constants.MaxWidth)
            {
                ExceptionHelper.OutOfRange(nameof(width), 0, Constants.MaxWidth, width);
            }

            if (height < 0 || height > Constants.MaxHeight)
            {
                ExceptionHelper.OutOfRange(nameof(height), 0, Constants.MaxHeight, height);
            }

            Width  = width;
            Height = height;
            Mode   = mode;
        }
Exemplo n.º 3
0
 public ScaleTransform(Size size, InterpolaterMode mode)
     : this(size.Width, size.Height, mode)
 {
 }