I have a 1-D character array of over 64,000 bytes. I want to break this array into a 3-D character array. Each element would be 32bits(4bytes). What would be the easiest way to do this?
The original character array is the character representation of a 32-bit per pixel bitmap image. The information for each 32-bit pixel is just appended linearly to the 32-bit representation of the previous pixel. I want to split it up into a mulitidimensional array so I can easily manipulate specific pixels in the bitmap later. The new array would be something like: unsigned char pixelInfo[row][column][4];
Any ideas? Thanks in advance!
The original character array is the character representation of a 32-bit per pixel bitmap image. The information for each 32-bit pixel is just appended linearly to the 32-bit representation of the previous pixel. I want to split it up into a mulitidimensional array so I can easily manipulate specific pixels in the bitmap later. The new array would be something like: unsigned char pixelInfo[row][column][4];
Any ideas? Thanks in advance!