摘要:
1 from PIL import Image,ImageFont,ImageDraw 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 print(img.size) 4 draw_obj = ImageDraw.Draw(img) 阅读全文
摘要:
1 from PIL import Image,ImageDraw 2 img = Image.open(r'C:\Users\87823\Desktop\tree.png') 3 w,h = img.size 4 # 创建绘图对象 5 draw_obj = ImageDraw.Draw(img) 阅读全文
摘要:
1 from PIL import Image,ImageDraw,ImageFont 2 img = Image.new('RGB',(300,300),'white') 3 # img.show() 4 # 绘制一个矩形 5 draw_obj = ImageDraw.Draw(img) 6 dr 阅读全文
摘要:
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 # 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
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 阅读全文