flashplayer.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:flashplayer-pygtk 作者: nanpuyue 项目源码 文件源码
def save_screenshot(window, output):
    width, height = window.get_size()
    pixbuf = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, False, 8, width, height)
    screenshot = pixbuf.get_from_drawable(window.window, window.get_colormap(), 0, 0, 0, 0, width, height)
    screenshot.save(output, 'png')
    gtk.main_quit()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号