def bmp_info(data): tu = struct.unpack('<ccIIIIIIHH', data[:30]) if tu[0] == b'B' and tu[1] == b'M': return { 'width': tu[6], 'height': tu[7], 'color': tu[9] } return None
Sign in to make a reply
用户6386657610