Rectangle Corners #6192
Rectangle Corners
#6192
-
Hello! I was wondering if anyone knew how to do the same rectangle corners Thank you :) |
Beta Was this translation helpful? Give feedback.
Answered by
radarhere
Apr 10, 2022
Replies: 1 comment 3 replies
-
Are you looking for https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.rounded_rectangle ? from PIL import Image, ImageDraw
im = Image.new("RGB", (20, 60))
draw = ImageDraw.Draw(im)
draw.rounded_rectangle((-10, 10, 10, 50), 3, fill="#999")
im.save("rounded_rectangle.png") |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Polsulpicien
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you looking for https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.rounded_rectangle ?