public static Color32[] ScaleLanczos(Color32[] bytes, int width, int targetWidth, int targetHeight) { var colors = GetColors(bytes); var l = new ScaleImage(colors, width); colors = l.ScaleLanczos(targetWidth, targetHeight); return(GetColors(colors)); }
public static Color32[] ScaleLinear(Color32[] bytes, int width, int targetWidth, int targetHeight) { var colors = GetColors(bytes); var si = new ScaleImage(colors, width); colors = si.ScaleLinear(targetWidth, targetHeight); return(GetColors(colors)); }