def bmp_info(data):
a=struct.unpack('<ccIIIIIIHH', data[0:30])
if a[0:2]==(b'B',b'M'):
return {
'width': a[6],
'height': a[7],
'color': a[9]
}
Sign in to make a reply
一度剑心
def bmp_info(data):
a=struct.unpack('<ccIIIIIIHH', data[0:30])
if a[0:2]==(b'B',b'M'):
return {
'width': a[6],
'height': a[7],
'color': a[9]
}