ImageFont.py 文件源码

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

项目:CNCGToolKit 作者: cineuse 项目源码 文件源码
def getmask2(self, text, mode="", fill=Image.core.fill):
        size, offset = self.font.getsize(text)
        im = fill("L", size, 0)
        self.font.render(text, im.id, mode=="1")
        return im, offset

##
# Wrapper that creates a transposed font from any existing font
# object.
#
# @param font A font object.
# @param orientation An optional orientation.  If given, this should
#     be one of Image.FLIP_LEFT_RIGHT, Image.FLIP_TOP_BOTTOM,
#     Image.ROTATE_90, Image.ROTATE_180, or Image.ROTATE_270.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号