Kaydet (Commit) fa3de516 authored tarafından Guido van Rossum's avatar Guido van Rossum

Print real width and warn for stride not a multiple of 4 bytes

üst 864cde28
...@@ -61,7 +61,11 @@ def main(): ...@@ -61,7 +61,11 @@ def main():
else: else:
size = (w/pf) * (h/pf) size = (w/pf) * (h/pf)
print name, ':', w, 'x', h, '; pf =', pf, ', size =', size, print name, ':', w, 'x', h, '; pf =', pf, ', size =', size,
if pf == 0: print '(color)', if pf == 0:
print '(color)',
else:
print '(' + `(w/pf)` + 'x' + `(h/pf)` + ')',
if (w/pf)%4 <> 0: print '!!!',
print print
num = 0 num = 0
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment