Wand function() function in Python Last Updated : 27 Feb, 2023 Comments Improve Suggest changes Like Article Like Report 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(function, arguments, channel) Parameters : ParameterInput TypeDescriptionfunctioncollections.abc.Sequencea sequence of doubles to apply against functionargumentsnumbers.RealNumber to calculate with operator channelbasestringOptional channel to apply operation on. Example 1:Source Image: Python3 # Import Image from wand.image module from wand.image import Image frequency = 3 phase_shift = -90 amplitude = 0.2 bias = 0.7 # Read image using Image function with Image(filename ="koala.jpeg") as img: # applying sinusoid FUNCTION_TYPE img.function('sinusoid', [frequency, phase_shift, amplitude, bias]) img.save(filename ="kl-functioned.jpeg") Output : Example 2:Source Image: Python3 # Import Image from wand.image module from wand.image import Image frequency = 3 phase_shift = -90 amplitude = 0.2 bias = 0.7 # Read image using Image function with Image(filename ="road.jpeg") as img: # applying sinusoid FUNCTION_TYPE img.function('polynomial', [frequency, phase_shift, amplitude, bias]) img.save(filename ="rd-functioned.jpeg") Output : Comment More infoAdvertise with us Next Article Wand circle() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-wand Practice Tags : python Similar Reads Wand line() function in Python 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 : 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 Wand flop() function in Python In this article we will learn what is flop() function. Basically this function returns a flipped image. Flop effect flops an image upside-down or creates an vertical reflection of image. No arguments are needed in this function. Syntax : wand.image.flop()Parameters : No Parameters in flop() function 1 min read 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 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 Drawing() function in Python 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 sy 1 min read Like