示例#1
0
        public static Color[][] BlockifyColors(this ImageFactory img, int x, int y)
        {
            Bitmap bmp = img.Blockify(x, y).Image as Bitmap;

            return(Enumerable.Range(0, y).Select(j =>
                                                 Enumerable.Range(0, x).Select(i =>
                                                                               bmp.GetPixel(i * 200, j * 200)).ToArray()).ToArray());
        }