def bmp_info(data):
s=struct.unpack('<ccIIIIIIHH', data[:30])
if s[1] == b'M':
return {
'width': s[6],
'height': s[7],
'color': s[9]
}
Sign in to make a reply
灿_Clarence
def bmp_info(data):
s=struct.unpack('<ccIIIIIIHH', data[:30])
if s[1] == b'M':
return {
'width': s[6],
'height': s[7],
'color': s[9]
}