示例#1
0
        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));
        }
示例#2
0
        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));
        }