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 thar are start and end point of the line that we want to draw.
Syntax :wand.drawing.line(start, end)
Parameter Input Type Description start sequence or (numbers.Integral, numbers.Integral) pair which represents starting x and y of the arc. end sequence or (numbers.Integral, numbers.Integral) pair which represents ending x and y of the arc.
Example #2: Draw a line on a pre-exixting image.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course