def bmp_info(data):
x=struct.unpack('<ccIIIIIIHH',data[:30])
return {
'width': x[-4],
'height': x[-3],
'color': x[-1]
}
Sign in to make a reply
叶子大一片
def bmp_info(data):
x=struct.unpack('<ccIIIIIIHH',data[:30])
return {
'width': x[-4],
'height': x[-3],
'color': x[-1]
}