Wand composite() function in Python Last Updated : 11 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The composite() function renders an image on top of the drawing subject image using COMPOSITE_OPERATORS. A compositing image must be given with a destination top, left, width, and height values. Syntax: wand.drawing.composite(image, left, top, operator, arguments, gravity) Parameters : Parameter Input Type Description image wand.image.Image the image placed over the current image left numbers.Integral the x-coordinate where image will be placed top numbers.Integral the y-coordinate where image will be placed operator basestring the operator that affects how the composite is applied to the image. arguments basestring Additional numbers given as a geometry string, or comma delimited values. This is needed for 'blend', 'displace', 'dissolve', and 'modulate' operators. gravity basestring Calculate the top & left values based on gravity value from GRAVITY_TYPES. The following is the list of COMPOSITE_OPERATORS : ('undefined', 'alpha', 'atop', 'blend', 'blur', 'bumpmap', 'change_mask', 'clear', 'color_burn', 'color_dodge', 'colorize', 'copy_black', 'copy_blue', 'copy', 'copy_cyan', 'copy_green', 'copy_magenta', 'copy_alpha', 'copy_red', 'copy_yellow', 'darken', 'darken_intensity', 'difference', 'displace', 'dissolve', 'distort', 'divide_dst', 'divide_src', 'dst_atop', 'dst', 'dst_in', 'dst_out', 'dst_over', 'exclusion', 'hard_light', 'hard_mix', 'hue', 'in', 'intensity', 'lighten', 'lighten_intensity', 'linear_burn', 'linear_dodge', 'linear_light', 'luminize', 'mathematics', 'minus_dst', 'minus_src', 'modulate', 'modulus_add', 'modulus_subtract', 'multiply', 'no', 'out', 'over', 'overlay', 'pegtop_light', 'pin_light', 'plus', 'replace', 'saturate', 'screen', 'soft_light', 'src_atop', 'src', 'src_in', 'src_out', 'src_over', 'threshold', 'vivid_light', 'xor', 'stereo') Input Images: Image #1: Image #2: Example #1: Python3 1== from wand.image import Image, COMPOSITE_OPERATORS from wand.drawing import Drawing from wand.display import display gog = Image(filename ='gog.png') road = Image(filename ='rd.jpg') g = gog.clone() r = road.clone() with Drawing() as draw: # composite image with color_burn operator draw.composite(operator ='color_burn', left = 20, top = 30, width = r.width, height = r.height, image = r) draw(g) g.save(filename ="colorburn.png") display(g) Output : Example #1: Python3 1== from wand.image import Image, COMPOSITE_OPERATORS from wand.drawing import Drawing from wand.display import display gog = Image(filename ='gog.png') road = Image(filename ='rd.jpg') g = gog.clone() r = road.clone() with Drawing() as draw: # composite image with dissolve operator draw.composite(operator = 'luminize', left = 20, top = 30, width = g.width, height = g.height, image = g) draw(r) r.save(filename ="dissolve.png") display(r) Output: Comment More infoAdvertise with us Next Article Wand circle() function in Python R RahulSabharwal Follow Improve Article Tags : Python Python-gui 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 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 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 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 Python - evaluate() function in Wand In evaluate() function pixel channels can be manipulated by applying an arithmetic, relational, or logical expression. Syntax : wand.image.evaluate(operator, value, channel) Parameters : ParameterInput TypeDescriptionoperatorbasestringType of operation to calculate.valuenumbers.RealNumber to calcula 1 min read Like