Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何从画布获取所有像素?_Python_Python 3.x_Tkinter_Tkinter Canvas - Fatal编程技术网

Python 如何从画布获取所有像素?

Python 如何从画布获取所有像素?,python,python-3.x,tkinter,tkinter-canvas,Python,Python 3.x,Tkinter,Tkinter Canvas,我有一个64x64画布字段,其中包含绘制的对象(点、矩形等)。如何获取画布上所有像素的颜色列表?无法获取画布上各个像素的信息 好的。有没有办法将画布图像保存为文件?@synd:您可以将其保存为postscript文件,也可以查询所有对象并以自定义格式保存。

我有一个64x64画布字段,其中包含绘制的对象(点、矩形等)。如何获取画布上所有像素的颜色列表?

无法获取画布上各个像素的信息

好的。有没有办法将画布图像保存为文件?@synd:您可以将其保存为postscript文件,也可以查询所有对象并以自定义格式保存。