pildriver.py 文件源码

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

项目:ascii-art-py 作者: blinglnav 项目源码 文件源码
def do_add(self):
        """usage: add <image:pic1> <image:pic2> <int:offset> <float:scale>

        Pop the two top images, produce the scaled sum with offset.
        """
        from PIL import ImageChops
        image1 = self.do_pop()
        image2 = self.do_pop()
        scale = float(self.do_pop())
        offset = int(self.do_pop())
        self.push(ImageChops.add(image1, image2, scale, offset))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号