I have a 30 x 40 pixel .bmp file that I want to load into inputData
that is declared like the following:
byte[][] inputData = new byte[30][40];
I relatively new to programming, so any one can tell me what classes should I being using to do so? thanks!
I don't know how to access the .bmp file in the same package and assign the corresponding (x, y)
position onto my 2-D byte array
. So far I have the following:
for (int x = 0; x < inputData.length; x++)
{
for (int y = 0; y < inputData[x].length; y++)
{
// inputData[x][y] =
}
}