mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-27 20:43:43 +03:00
Merge pull request #1184 from darkfeline/add-doc
Clarify docstring about mask values [ci skip]
This commit is contained in:
commit
f21b45c976
|
@ -1288,11 +1288,11 @@ class Image:
|
||||||
images (in the latter case, the alpha band is used as mask).
|
images (in the latter case, the alpha band is used as mask).
|
||||||
Where the mask is 255, the given image is copied as is. Where
|
Where the mask is 255, the given image is copied as is. Where
|
||||||
the mask is 0, the current value is preserved. Intermediate
|
the mask is 0, the current value is preserved. Intermediate
|
||||||
values can be used for transparency effects.
|
values will mix the two images together, including their alpha
|
||||||
|
channels if they have them.
|
||||||
|
|
||||||
Note that if you paste an "RGBA" image, the alpha band is
|
See :py:meth:`~PIL.Image.Image.alpha_composite` if you want to
|
||||||
ignored. You can work around this by using the same image as
|
combine images with respect to their alpha channels.
|
||||||
both source image and mask.
|
|
||||||
|
|
||||||
:param im: Source image or pixel value (integer or tuple).
|
:param im: Source image or pixel value (integer or tuple).
|
||||||
:param box: An optional 4-tuple giving the region to paste into.
|
:param box: An optional 4-tuple giving the region to paste into.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user