mirror of
https://github.com/robmcmullen/asmgen.git
synced 2024-06-01 20:41:28 +00:00
Merge pull request #1 from robmcmullen/master
pypng on my platform returns an iterator for pixelData
This commit is contained in:
commit
b1828eaa91
|
@ -30,7 +30,7 @@ def main(argv):
|
||||||
|
|
||||||
width = pngdata[0]
|
width = pngdata[0]
|
||||||
height = pngdata[1]
|
height = pngdata[1]
|
||||||
pixelData = pngdata[2]
|
pixelData = list(pngdata[2])
|
||||||
byteWidth = width/2+1+1 # TODO: Calculate a power of two for this
|
byteWidth = width/2+1+1 # TODO: Calculate a power of two for this
|
||||||
niceName = os.path.splitext(pngfile)[0].upper()
|
niceName = os.path.splitext(pngfile)[0].upper()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user