plotting.py 文件源码

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

项目:PyMaid 作者: schlegelp 项目源码 文件源码
def screenshot(file='screenshot.png', alpha=True):
    """ Saves a screenshot of active 3D canvas.

    Parameters
    ----------
    file :      str, optional
                Filename
    alpha :     bool, optional
                If True, alpha channel will be saved
    """
    if alpha:
        mode = 'RGBA'
    else:
        mode = 'RGB'

    im = png.from_array(_screenshot(alpha=alpha), mode=mode)
    im.save(file)

    return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号