ImageGrab.py 文件源码

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

项目:InstagramPosting 作者: LeviParadis 项目源码 文件源码
def grab(bbox=None):
    size, data = grabber()
    im = Image.fromstring(
        "RGB", size, data,
        # RGB, 32-bit line padding, origo in lower left corner
        "raw", "BGR", (size[0]*3 + 3) & -4, -1
        )
    if bbox:
        im = im.crop(bbox)
    return im

##
# (New in 1.1.4) Take a snapshot of the clipboard image, if any.
#
# @return An image, a list of filenames, or None if the clipboard does
#     not contain image data or filenames.  Note that if a list is
#     returned, the filenames may not represent image files.
# @since 1.1.4
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号