Changeset 287 for pkpgcounter
- Timestamp:
- 11/23/05 22:32:38 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/inkcoverage.py
r282 r287 34 34 if img.mode != "RGB" : 35 35 img = img.convert("RGB") 36 data = img.getdata() 36 37 cyan = magenta = yellow = black = 0 37 for (r, g, b) in img.getdata():38 for (r, g, b) in data : 38 39 if r == g == b : 39 40 black += 255 - r