def bmp_info(data): t = struct.unpack('<ccIIIIIIHH',data[:30]) return { 'width': t[6], 'height': t[7], 'color': t[9] }
Sign in to make a reply
邹lh