问题
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 ?
回答1:
You can't. Tkinter gives you no way to get that information.
来源:https://stackoverflow.com/questions/30104270/tkinter-number-of-pixels-of-a-line-oval