public static string ToLower(this InterpolaterMode value) { switch (value) { case InterpolaterMode.Lanczos3: return("lanczos3"); } return(value.ToString().ToLower()); }
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; }
public ScaleTransform(Size size, InterpolaterMode mode) : this(size.Width, size.Height, mode) { }