Saves an image of the
widget and its children in png format at the specified filename. Works
by removing the widget canvas from its parent, rendering to an Fbo,
and calling save().
Note
The image includes only this widget and its children. If you want to
include widgets elsewhere in the tree, you must call export_to_png()
from their common parent, or use screenshot() to capture the whole
window.
Note
The image will be saved in png format, you should include the
extension in your filename.
在kivy documentation for widgets中,您可以简单地使用
.export_to_png
函数将小部件保存为图像。你知道吗相关问题 更多 >
编程相关推荐