The shear() function is an inbuilt function in the Python Wand ImageMagick library which is used to slide one edge of an image along the X or Y axis to create a parallelogram. The X-direction shear slides an edge along the X-axis, while a Y direction shear slides an edge along the Y-axis. The shear angle is used to set shear of the image.
Syntax:shear(background, x, y)
Parameters: This function accepts four parameters as mentioned above and defined below:
- background: This parameter stores the background color.
- x: This parameter is used to set degrees to x-shear of the image.
- y: This parameter is used to set degrees to y-shear of the image.
Return Value: This function returns the Wand ImageMagick object.
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