static void DrawBitmap64x64From4_32x32(AsyncGraphics gfx, Bitmap[] bitmaps, int x = 0, int y = 0) { /* * Topleft: 4 * TopRight: 3 * BottomLeft: 2 * BottomRight: 1 */ if (bitmaps[3] != null) { gfx.DrawImage(bitmaps[3], x, y, 32, 32); } if (bitmaps[2] != null) { gfx.DrawImage(bitmaps[2], x + 32, y, 32, 32); } if (bitmaps[1] != null) { gfx.DrawImage(bitmaps[1], x, y + 32, 32, 32); } if (bitmaps[0] != null) { gfx.DrawImage(bitmaps[0], x + 32, y + 32, 32, 32); } }
static void DrawBitmap64x32From2_32x32(AsyncGraphics gfx, Bitmap[] bitmaps, int x = 0, int y = 0) { /* * Left: 2 * Right: 1 */ if (bitmaps[1] != null) { gfx.DrawImage(bitmaps[1], x, y, 32, 32); } if (bitmaps[0] != null) { gfx.DrawImage(bitmaps[0], x + 32, y, 32, 32); } }
static void DrawBitmap32x64From2_32x32(AsyncGraphics gfx, Bitmap[] bitmaps, int x = 0, int y = 0) { /* * Top: 2 * Bottom: 1 */ if (bitmaps[1] != null) { gfx.DrawImage(bitmaps[1], x, y, 32, 32); } if (bitmaps[0] != null) { gfx.DrawImage(bitmaps[0], x, y + 32, 32, 32); } }
static void DrawBitmap32x32From1_32x32(AsyncGraphics gfx, Bitmap[] bitmaps, int x = 0, int y = 0) { /* * Fill: 1 */ if (bitmaps[0] != null) { gfx.DrawImage(bitmaps[0], x, y, 32, 32); } }