ImageDraw.rectange()的用法

ImageDraw.rectange()的用法

            from PIL import ImageDraw
            draw = ImageDraw.Draw(img)
            
            # eg.1
            draw.rectangle([left,top,right,bottom],outline='white',fill = 'green')
            
            # eg.2
            draw.rectangle(((left,top),(width,height)),fill = 'black',outline='white')
            
            img.show()
            """

你可能感兴趣的:(Python,PIL)