TkInter:线/椭圆的像素数 [英] TkInter: number of pixels of a line/oval
本文介绍了TkInter:线/椭圆的像素数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
让我们画一条线和一个圆:
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 ?
推荐答案
您不能. Tkinter使您无法获取该信息.
You can't. Tkinter gives you no way to get that information.
这篇关于TkInter:线/椭圆的像素数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文