I have an int[][] matrix and I want to create a raster image like a grid with each value of the matrix on a cell, being capable of reading the value from the image, cell by cell.
The cell should be an arbitrary square. How can I do this?