Update src/PIL/ImageChops.py

Apply wording suggestions about ImageChops.multiply

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
David Walker 2020-05-12 00:11:42 -07:00 committed by GitHub
parent cc39dbab0e
commit f0871b70e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,8 +240,10 @@ def subtract_modulo(image1, image2):
def logical_and(image1, image2):
"""Logical AND between two images.
Both of the images must have mode "1". For an AND in RGB mode, use a
multiply() by a black-and-white mask.
Both of the images must have mode "1". If you would like to perform a
logical AND on an image with a mode other than "1", try
:py:meth:`~PIL.ImageChops.multiply` instead, using a black-and-white mask
as the second image.
.. code-block:: python