Wand arc() function in Python Last Updated : 27 Feb, 2023 Comments Improve Suggest changes Like Article Like Report arc() is a function present in wand.drawing module. arc() function draws an arc in the image. You’ll need to define three pairs of (x, y) coordinates. First & second pair of coordinates will be the minimum bounding rectangle, and the last pair define the starting & ending degree. Syntax : wand.drawing.arc(start, end, degree) Parameters : ParameterInput TypeDescriptionstartsequence or (numbers.Real, numbers.Real)pair which represents starting x and y of the arc.endsequence or (numbers.Real, numbers.Real)pair which represents ending x and y of the arc.degreesequence or (numbers.Real, numbers.Real)pair which represents starting degree, and ending degree Example #1: Python3 # Import required objects from wand modules from wand.image import Image from wand.drawing import Drawing from wand.color import Color # generate object for wand.drawing with Drawing() as draw: # set stroke color draw.stroke_color = Color('black') # set width for stroke draw.stroke_width = 1 # fill white color in arc draw.fill_color = Color('white') draw.arc(( 50, 50), # Starting point ( 150, 150), # Ending point (135, -45)) # From bottom left around to top right with Image(width = 100, height = 100, background = Color('green')) as img: # draw shape on image using draw() function draw.draw(img) img.save(filename ='arc.png') Output: Example #2:Source Image: Python3 # Import required objects from wand modules from wand.image import Image from wand.drawing import Drawing from wand.color import Color # generate object for wand.drawing with Drawing() as draw:' # set stroke color draw.stroke_color = Color('black') # set width for stroke draw.stroke_width = 1 # fill white color in arc draw.fill_color = Color('white') draw.arc(( 50, 50), # Starting point ( 150, 150), # Ending point (135, -45)) # From bottom left around to top right with Image(filename ="gog.png") as img: # draw shape on image using draw() function draw.draw(img) img.save(filename ='arc.png') Output: Comment More infoAdvertise with us Next Article Wand arc() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand circle() function in Python The circle() function is another Drawing function in Wand. This method is used to draw a circle in the image. It requires only two arguments that are origin and perimeter of the circle. Syntax: wand.drawing.circle(origin, perimeter) Parameters : ParameterInput TypeDescriptionorigin(collections.abc. 2 min read Wand - blur() function in Python Blurring Image means making an image fuzzy or hazy. A blur image is indefinite and it is unable to see an image clearly. Blur is of many types, like - Adaptive blur, Gaussian blur, Selective Blur etc. In order to blur an image we use blur() function. blur() function takes three arguments. Example : 2 min read Wand enhance() function in Python Similar to despeckle() function this function also reduces noise of the image. enhance() function return an image with reduced noise of an image by applying an auto-filter. Syntax : wand.image.enhance() Parameters : No parameters in enhance() function Source Image: Example 1: Python3 # Import Image 1 min read Wand bezier() function in Python The bezier() is another Drawing function in Wand. This method is used to draw a bezier curve. It requires four points to determine a bezier curve. Extreme points define the start and end of the curve while in between two points are used to control the curve. Syntax: wand.drawing.bezier(points) Param 2 min read Wand flip() function in Python In this article we will learn what is flip() function. Basically this function returns a flipped image. Flip effect flips an image upside-down or creates an vertical reflection of image. No arguments are needed in this function. Syntax : wand.image.flip()Parameters : No Parameters in flip() function 1 min read Like