It is the uncompressed 24-bit bmp.
I have the header down, and here's how I'm doing the pixel array
Code: Select all
pix = bytes()
for x in range(pic.width):
for y in range(pic.height - 1, 0, -1):
pixel = pic.get_pixel(x, y)
pix += pixel.red()
pix += pixel.green()
pix += pixel.blue()
f.write(struct.pack("%dB" %pic.width*pic.height*3, pix))

It's like the pixels are not drawn in the right spots (everything shifted over by a bunch of pixels)
Following the specs on wiki, it should be 4-byte aligned.
My image is 544x416. Shouldn't have an issue with byte-alignment right?

