MCPcopy Create free account
hub / github.com/ActiveState/code / Chunk

Class Chunk

recipes/Python/578534_parse_png_image/recipe-578534.py:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import binascii
2
3class Chunk:
4 Length=None
5 type=None
6 data=None
7 CRC=None
8 def hight_width(self):
9 if self.type=='IHDR':
10 width=int(self.data[0:8],16)
11 hight=int(self.data[8:16],16)
12 return [width,hight]
13
14
15class PNG:

Callers 1

Find_ChunksMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected