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
Python3
# This will import Image and ImageChops modules from PIL import Image, ImageChops # Opening Images im = Image. open (r "C:\Users\Admin\Pictures\images.png" ) im2 = Image. open (r "C:\Users\Admin\Pictures\download.PNG" ) # superimposing images im and im2 im3 = ImageChops.screen(im, im2) # showing resultant image im3.show() |
Output:
Python PIL | ImageChops.screen() and ImageChops.offset() method
PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities.
Contact Us