/// <summary> /// Resizes an image using specified interpolation mode. /// </summary> /// <param name="img">Input image.</param> /// <param name="scale">Non-negative image size scale factor. If 1 the new size will be equal.</param> /// <param name="mode">Interpolation mode.</param> /// <returns>Resized image.</returns> public static TColor[,] Resize <TColor>(this TColor[,] img, float scale, InterpolationMode mode) where TColor : struct, IColor3 <byte> { return(ResizeExtensionsBase.Resize <TColor>(img, scale, mode)); }
/// <summary> /// Resizes an image using specified interpolation mode. /// </summary> /// <param name="img">Input image.</param> /// <param name="scale">Non-negative image size scale factor. If 1 the new size will be equal.</param> /// <param name="mode">Interpolation mode.</param> /// <returns>Resized image.</returns> public static Image <TColor, byte> Resize <TColor>(this Image <TColor, byte> img, float scale, InterpolationMode mode) where TColor : IColor3 { return(ResizeExtensionsBase.Resize <TColor, byte>(img, scale, mode)); }
/// <summary> /// Resizes an image using specified interpolation mode. /// </summary> /// <param name="img">Input image.</param> /// <param name="scale">Non-negative image size scale factor. If 1 the new size will be equal.</param> /// <param name="mode">Interpolation mode.</param> /// <returns>Resized image.</returns> public static Gray <byte>[,] Resize(this Gray <byte>[,] img, float scale, InterpolationMode mode) { return(ResizeExtensionsBase.Resize <Gray <byte> >(img, scale, mode)); }
/// <summary> /// Resizes an image using specified interpolation mode. /// </summary> /// <param name="img">Input image.</param> /// <param name="scale">Non-negative image size scale factor. If 1 the new size will be equal.</param> /// <param name="mode">Interpolation mode.</param> /// <returns>Resized image.</returns> public static Image <Gray, byte> Resize(this Image <Gray, byte> img, float scale, InterpolationMode mode) { return(ResizeExtensionsBase.Resize <Gray, byte>(img, scale, mode)); }