Skip to content

Commit

Permalink
python test 0000
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaoyuan Li committed Oct 8, 2015
1 parent 3041de3 commit 5980eea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ShaoyuanLi/0000/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Image,ImageDraw,ImageFont

myfont=ImageFont.truetype("arial.ttf", 35)
im=Image.open("touxiang.png")
draw=ImageDraw.Draw(im)
x,y=im.size
draw.text((x-x/5,y/8),"8",fill=(255,0,0),font=myfont)
im.save("result.png", "PNG")

0 comments on commit 5980eea

Please sign in to comment.