mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
.. py:module:: PIL.ImageChops
 | 
						|
.. py:currentmodule:: PIL.ImageChops
 | 
						|
 | 
						|
:py:mod:`ImageChops` ("Channel Operations") Module
 | 
						|
==================================================
 | 
						|
 | 
						|
The :py:mod:`ImageChops` module contains a number of arithmetical image
 | 
						|
operations, called channel operations (“chops”). These can be used for various
 | 
						|
purposes, including special effects, image compositions, algorithmic painting,
 | 
						|
and more.
 | 
						|
 | 
						|
For more pre-made operations, see :py:mod:`ImageOps`.
 | 
						|
 | 
						|
At this time, most channel operations are only implemented for 8-bit images
 | 
						|
(e.g. “L” and “RGB”).
 | 
						|
 | 
						|
Functions
 | 
						|
---------
 | 
						|
 | 
						|
Most channel operations take one or two image arguments and returns a new
 | 
						|
image. Unless otherwise noted, the result of a channel operation is always
 | 
						|
clipped to the range 0 to MAX (which is 255 for all modes supported by the
 | 
						|
operations in this module).
 | 
						|
 | 
						|
.. autofunction:: PIL.ImageChops.add
 | 
						|
.. autofunction:: PIL.ImageChops.add_modulo
 | 
						|
.. autofunction:: PIL.ImageChops.blend
 | 
						|
.. autofunction:: PIL.ImageChops.composite
 | 
						|
.. autofunction:: PIL.ImageChops.constant
 | 
						|
.. autofunction:: PIL.ImageChops.darker
 | 
						|
.. autofunction:: PIL.ImageChops.difference
 | 
						|
.. autofunction:: PIL.ImageChops.duplicate
 | 
						|
.. autofunction:: PIL.ImageChops.invert
 | 
						|
.. autofunction:: PIL.ImageChops.lighter
 | 
						|
.. autofunction:: PIL.ImageChops.logical_and
 | 
						|
.. autofunction:: PIL.ImageChops.logical_or
 | 
						|
.. autofunction:: PIL.ImageChops.multiply
 | 
						|
.. py:method:: PIL.ImageChops.offset(image, xoffset, yoffset=None)
 | 
						|
 | 
						|
    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**.
 | 
						|
 | 
						|
.. autofunction:: PIL.ImageChops.screen
 | 
						|
.. autofunction:: PIL.ImageChops.subtract
 | 
						|
.. autofunction:: PIL.ImageChops.subtract_modulo
 |