📜  糟糕的透明度掩码 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:45.247000             🧑  作者: Mango

代码示例1
card = Image.new("RGBA", (220, 220), (255, 255, 255))
img = Image.open("/Users/paulvorobyev/test.png").convert("RGBA")
x, y = img.size
card.paste(img, (0, 0, x, y), img)
card.save("test.png", format="png")