Wand line() function in Python Last Updated : 09 Feb, 2022 Comments Improve Suggest changes Like Article Like Report line() is another drawing function present in wand.drawing module. As the name implies line() function is used to draw a line in the image. line() function only need two arguments that are start and end point of the line that we want to draw. Syntax : wand.drawing.line(start, end) Parameters : ParameterInput TypeDescriptionstartsequence or (numbers.Integral, numbers.Integral)pair which represents starting x and y of the arc.endsequence or (numbers.Integral, numbers.Integral)pair which represents ending x and y of the arc. 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('green') # set width for stroke draw.stroke_width = 1 draw.line(( 50, 50), # Stating point ( 150, 150)) # Ending point with Image(width = 200, height = 200, background = Color('white')) as img: # draw shape on image using draw() function draw.draw(img) img.save(filename ='line.png') Output : Example #2: Draw a line on a pre-existing image.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('white') # set width for stroke draw.stroke_width = 1 with Image(filename = "gog.png") as img: draw.line((( img.height)/2, 0), # Stating point ( 0, (img.width)/2)) # Ending point # draw shape on image using draw() function draw.draw(img) img.save(filename ='line2.png') Output : Comment More infoAdvertise with us Next Article Wand function() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand point() function in Python point() is another drawing function and simplest of all. point() function basically draw a point on a particular point on an image. It simply takes two x, y arguments for the point coordinate. Syntax : wand.drawing.point(x, y) Parameters: ParameterInput TypeDescriptionxnumbers.Realx coordinate of po 1 min read Python - Image() function in Wand In this specific article we will learn how to read our image through Python wand module. To read image in Wand we use Image() function. To manipulate an image first of all we need to read image in Python. Parameters : Parameter Input Type Description image Image make exact copy of image blob bytes o 2 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 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 wave() function in Python wave() function creates a wave like structure from top and bottom of the image. Creates a ripple effect within the image. We can change wavelength as well as amplitude of the image using amplitude & wave_length parameters in wave() function. Syntax : wand.image.wave(amplitude, wave_length) Param 1 min read Like