split Bitmap
Splits the given bitmap into multiple square chunks.
This method returns a pair of ArrayList:
- The first contains the chunks.
- The second contains the sme chunks but with a dark color filter applied. The dark color filter is used to distinguish the blank tile from the rest of the puzzle tiles.
Return
Pair of ArrayList, with the first containing the chunks and the second containing the same chunks but with a dark color filter applied.
Parameters
image
Bitmap to be split into multiple chunks.
chunkDimen
Dimension of a chunk.
numTiles
Number of chunks (should be equal to the square of numColumns).
numColumns
Number of columns in the puzzle grid.