PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities.
ImageChops.screen() method –
This method is used to superimpose two inverted images on top of each other.
Syntax: ImageChops.screen(image1, image2) Parameters: image1 first image image2 second image Return Value: An Image
ImageChops.offset() method –
This method returns a copy of the image where data has been offset by the given distances. Data wraps around the edges. If yoffset is omitted, it is assumed to be equal to xoffset.
Syntax: ImageChops.offset(image1, xoffset, yoffset = None)
image: It is the image on which offset is provided
xoffset: the horizontal distance
yoffset: it is the vertical distance, if omitted both distance are set to same.
Return value: Copy of the orginal image
- class method vs static method in Python
- Python | next() method
- Python | os.dup() method
- Python | set() method
- Python | sympy.Mod() method
- Python | sympy.tan() method
- Python | os.nice() method
- Python | sys.getallocatedblocks() method
- Python | os.pipe() method
- Python | os.fork() method
- Python | os.getgrouplist() method
- Python | os.openpty() method
- Python | os.setreuid() method
- Python | os.getsid() method
- Python | Method Overloading
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.