Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

draw picture in python libraries

draw.ellipse((100, 100, 150, 200), fill=(255, 0, 0), outline=(0, 0, 0))
draw.rectangle((200, 100, 300, 200), fill=(0, 192, 192), outline=(255, 255, 255))
draw.line((350, 200, 450, 100), fill=(255, 255, 0), width=10)

im.save('data/dst/pillow_imagedraw.jpg', quality=95)
Comment

PREVIOUS NEXT
Code Example
Python :: get first element of array python 
Python :: why are my static files not loading in django 
Python :: isolationforest estimators 
Python :: Convert datetime object to a String of date only in Python 
Python :: python string encode 
Python :: python recognize every white color 
Python :: while true loop python 
Python :: find index of element in array python 
Python :: Remove whitespace from str 
Python :: python animation 
Python :: python request add header 
Python :: how to add value in array django 
Python :: print to file python 
Python :: tuple count in python 
Python :: count elements in list python 
Python :: print each element of list in new line python 
Python :: python logger format 
Python :: python3 call parent constructor 
Python :: python generate dictionary in loop 
Python :: How to Pass Additional Context into a Class Based View in django 
Python :: Change one value based on another value in pandas 
Python :: Add two numbers as a linked list 
Python :: how to check if a list is empty 
Python :: python3 format leading 0 
Python :: function with args* example 
Python :: why pytest return No ModuleError 
Python :: http python lib 
Python :: how to replace a string in python 
Python :: max and min int in python 
Python :: how to extract dictionary value from string in python 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =