from PIL import Image file_name = "colors.png" img = Image.open(file_name) pixels = img.load() width, height = img.size print(img.size) for x in range(width): for y in range(height): print(x, y)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)