上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页
摘要: 1 from PIL import Image,ImageChops 2 img1 = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 img2 = Image.open(r'C:\Users\87823\Desktop\gold.png') 4 # 阅读全文
posted @ 2020-05-19 17:01 小他_W 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 w,h =img.size 4 img_output = Image.new('RGB',(3*w,h)) 5 img_output.pa 阅读全文
posted @ 2020-05-19 12:26 小他_W 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image,ImageEnhance 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 w,h = img.size 4 # print('w:',w,'h:',h) 5 # 创建图像区域 6 img 阅读全文
posted @ 2020-05-19 12:13 小他_W 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image,ImageEnhance 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 w,h = img.size 4 img_output = Image.new('RGB',(3*w,h)) 5 阅读全文
posted @ 2020-05-19 12:02 小他_W 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img1 = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 img2 = Image.open(r'C:\Users\87823\Desktop\gold.png') 4 img2 = img2. 阅读全文
posted @ 2020-05-19 11:16 小他_W 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img1 = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 img1.rotate(90).show() 1 from PIL import Image 2 img1 = Image.open(r 阅读全文
posted @ 2020-05-19 10:57 小他_W 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 # 复制 4 img2 = img.copy() 5 img3 = img.copy() 6 # 剪切 7 img_crop = img2 阅读全文
posted @ 2020-05-18 17:35 小他_W 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img1 = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 # img1.show() 4 # 将每个像素都扩大2倍 5 # Image.eval(img1,lambda x: x*2).show 阅读全文
posted @ 2020-05-18 17:22 小他_W 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img1 = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 img2 = Image.open(r'C:\Users\87823\Desktop\gold.png') 4 img2 = img2. 阅读全文
posted @ 2020-05-18 12:55 小他_W 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1 from PIL import Image 2 img1 = Image.open(r'C:\Users\87823\Desktop\beijing.png').convert(mode = 'RGB') 3 img2 = Image.new("RGB",img1.size,'red') 4 # 阅读全文
posted @ 2020-05-18 12:38 小他_W 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 18 下一页