ImageChops
index
/Library/Python/2.7/site-packages/PIL/ImageChops.py

# The Python Imaging Library.
# $Id$
#
# standard channel operations
#
# History:
# 1996-03-24 fl   Created
# 1996-08-13 fl   Added logical operations (for "1" images)
# 2000-10-12 fl   Added offset method (from Image.py)
#
# Copyright (c) 1997-2000 by Secret Labs AB
# Copyright (c) 1996-2000 by Fredrik Lundh
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
Image

 
Functions
       
add(image1, image2, scale=1.0, offset=0)
Add two images
add_modulo(image1, image2)
Add two images without clipping
blend(image1, image2, alpha)
Blend two images using a constant transparency weight
composite(image1, image2, mask)
Create composite image by blending images using a transparency mask
constant(image, value)
Fill a channel with a given grey level
darker(image1, image2)
Select the darker pixels from each image
difference(image1, image2)
Subtract one image from another
duplicate(image)
Create a copy of a channel
invert(image)
Invert a channel
lighter(image1, image2)
Select the lighter pixels from each image
logical_and(image1, image2)
Logical and between two images
logical_or(image1, image2)
Logical or between two images
logical_xor(image1, image2)
Logical xor between two images
multiply(image1, image2)
Superimpose two positive images
offset(image, xoffset, yoffset=None)
Offset image in horizontal and/or vertical direction
screen(image1, image2)
Superimpose two negative images
subtract(image1, image2, scale=1.0, offset=0)
Subtract two images
subtract_modulo(image1, image2)
Subtract two images without clipping