Wand Drawing() function in Python Last Updated : 11 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report Another module for wand is wand.drawing. This module provides us with some very basic drawing functions. wand.drawing.Drawing object buffers instructions for drawing shapes into images, and then it can draw these shapes into zero or more images. Syntax : with Drawing() as draw: Note: In the above syntax "as draw" is just a nomenclature and can be any string as needed. The Drawing function in Python wand take has no parameter. Example #1: Python3 1== # Import important objects from wand library from wand.image import Image from wand.drawing import Drawing from wand.color import Color # Create draw object using Drawing() function with Drawing() as draw: with Image(width = 200, height = 200, background = Color('green')) as img: draw(img) img.save(filename ='empty.gif') Output Image: Let's draw a line Example #2: Python3 1== # Import important objects from wand library from wand.image import Image from wand.drawing import Drawing from wand.color import Color # Create draw object using Drawing() function with Drawing() as draw: draw.stroke_color = Color('black') draw.stroke_width = 2 draw.line((5, 5), (45, 50)) with Image(width = 200, height = 200, background = Color('green')) as img: draw.draw(img) img.save(filename ='line.gif') Output Image: Comment More infoAdvertise with us Next Article Wand - blur() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wand Practice Tags : python Similar Reads 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 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 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 function() function in Python function() function is similar to evaluate function. In function() function pixel channels can be manipulated by applies a multi-argument function to pixel channels. Following are the list of FUNCTION_TYPES in Wand: 'undefined''arcsin''arctan''polynomial''sinusoid' Syntax : wand.image.function(funct 1 min read Wand color() function in Python color() function draws a color on the image using current fill color, starting at specified position & method. Uses same arguments as color() method. Following are PAINT_METHOD_TYPES. 'point' alters a single pixel.'replace' swaps on color for another. Threshold is influenced by fuzz.'floodfill' 2 min read Like