// Put the different parts of the image which contains the map tiles in a multidimensional array public void ListTilesFromImage() { System.Drawing.Rectangle rect; PixelFormat format = Image.PixelFormat; for (int y = 0; y < TilesY; y++) { for (int x = 0; x < TilesX; x++) { rect = new System.Drawing.Rectangle(x * 32, y * 32, 32, 32); Bitmap tile = Image.Clone(rect, format); Tiles[x, y] = tile; } } }