コード例 #1
0
        public static ZsImage PyramidDownArgb(this ZsImage argbImage, Area2D filterArea, bool blur = true)
        {
            if (blur)
            {
                argbImage = argbImage.Filter(filterArea, GaussianFilter, 5, 5, 1.0 / 16.0);
            }

            argbImage = argbImage.ScaleDown2x();
            return(argbImage);
        }
コード例 #2
0
        public static ZsImage Filter(this ZsImage argbImage, double[] filter, byte filterWidth, byte filterHeight, double multiplicator = 1.0)
        {
            var area = Area2D.Create(0, 0, argbImage.Width, argbImage.Height);

            return(argbImage.Filter(area, filter, filterWidth, filterHeight, multiplicator));
        }