draw circle

main
tkekec 3 years ago
parent 71f47f44e5
commit 3b55854ca3
  1. 1
      python-core.tex

@ -2057,6 +2057,7 @@ plt.imshow(rgb_image_float)
from PIL import Image, ImageDraw
image = Image.new('RGBA', (200, 200))
draw = ImageDraw.Draw(image)
# bounding box coordinates for the ellipse topleft, bot right (x1, y1, x2, y2)
draw.ellipse((20, 20, 180, 180), fill = 'blue', outline ='blue')
draw.point((100, 100), 'red')
image.save('test.png')

Loading…
Cancel
Save