Name: Anonymous 2008-06-10 14:03
def readBMP( filename):
f = file( filename)
content = f.read()
f.close()
return content
def getDimensions( bytes):
return bytes[18:22],bytes[22:26]
w,h = getDimensions( getBMP( 'test.bmp'))how do i convert w and h to int?
atm (w,h) == ('\x05\x00\x00\x00', '\x05\x00\x00\x00')