"PIL Image / opencv"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
(새 문서: # transparent image paste <source lang=python> import Image background = Image.open("test1.png") foreground = Image.open("test2.png") background.paste(foreground, (0, 0), foreground...)
 
잔글
1번째 줄: 1번째 줄:
# transparent image paste
+
==transparent image paste==
 
<source lang=python>
 
<source lang=python>
 
import Image
 
import Image
9번째 줄: 9번째 줄:
 
background.show()
 
background.show()
 
</source >
 
</source >
 +
[https://stackoverflow.com/a/5324782/766330]

2019년 5월 13일 (월) 17:01 판

transparent image paste

import Image

background = Image.open("test1.png")
foreground = Image.open("test2.png")

background.paste(foreground, (0, 0), foreground)
background.show()

[1]