Search code examples
pythontkinterpixel

TkInter: number of pixels of a line/oval


Let's draw a line and a circle:

canvas.create_line(x0,y0,x1,y1)
canvas.create_oval(x0,y0,x1,y1)

How to count the number of pixels each one of them has ?


Solution

  • You can't. Tkinter gives you no way to get that information.