Wand bezier() function in Python Last Updated : 11 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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) Parameters : Parameter Input Type Description points list list of x, y tuples. Example 1: Python3 1== # 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 # points list to determine curve points = [(40, 10), # Start point (20, 50), # First control (90, 10), # Second control (70, 40)] # End point # fill white color in arc draw.fill_color = Color('white') # draw bezier curve using bezier function draw.bezier(points) with Image(width = 100, height = 100, background = Color('green')) as img: # draw shape on image using draw() function draw.draw(img) img.save(filename ='bezier.png') Output: Example #2: Input Image: Python3 1== # 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: points = [(20, 100), # Start point (50, 10), # First control (50, 90), # Second control (180, 100)] # 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 bezier curve using bezier function # From bottom left around to top right draw.bezier(points) with Image(filename ="gog.png") as img: # draw shape on image using draw() function draw.draw(img) img.save(filename ='bezier2.png') Output: Comment More infoAdvertise with us Next Article Wand bezier() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wand Practice Tags : python Similar Reads Wand bezier() function - Python The bezier() function is an inbuilt function in the Python Wand ImageMagick library which is used to draw the bezier curve from specified points. Syntax: bezier(points) Parameters: This function accepts single parameter as mentioned above and defined below: points: This parameter is used to specify 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 ellipse() function in Python ellipse() function is used to draw an ellipse on the image. Just similar to drawing circle the ellipse() function requires two pairs of point that is, origin and a pair of (x, y) radius of the ellipse. To draw a partial ellipse, provide a pair of starting & ending degrees as the third parameter. 2 min read Wand arc() function in Python 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 : wa 2 min read 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 Like