python3 wand怎么用
发布网友
发布时间:2022-07-24 20:53
我来回答
共1个回答
热心网友
时间:2023-10-09 22:39
距离上边界top个像素,生成的新图片保存成filename
def composite(img_back, img, left, top, target):
with Image(filename = img_back) as w:
with Image(filename = img) as r:
with Drawing() as draw:
draw.composite(operator = 'atop',
left = left, top = top,
width = r.width,
height = r.height,
image = r)
draw(w)