map = Bitmap.createBitmap(size * SMALLEST_SIZE, size * SMALLEST_SIZE, Bitmap.Config.ARGB_8888); canvas = new Canvas(map);