I'm not sure. Give it a try:

Using GetDIBits (or GetPixel -slow) API, you can get color of each individual pixel.
So, make an UDT that can store 32x32 pixels.
Create an UDT array.
Inside 2 for loops, get pixel colors and save them in that UDT array.

http://www.vb-helper.com/howto_getdibits.html