mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Highlight code
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
bae918280d
commit
d7c7b832f1
|
@ -1284,8 +1284,8 @@ class Image:
|
||||||
Calculates the bounding box of the non-zero regions in the
|
Calculates the bounding box of the non-zero regions in the
|
||||||
image.
|
image.
|
||||||
|
|
||||||
:param alpha_only: Optional flag, defaulting to true.
|
:param alpha_only: Optional flag, defaulting to ``True``.
|
||||||
If true and the image has an alpha channel, trim transparent pixels.
|
If ``True`` and the image has an alpha channel, trim transparent pixels.
|
||||||
Otherwise, trim pixels when all channels are zero.
|
Otherwise, trim pixels when all channels are zero.
|
||||||
:returns: The bounding box is returned as a 4-tuple defining the
|
:returns: The bounding box is returned as a 4-tuple defining the
|
||||||
left, upper, right, and lower pixel coordinate. See
|
left, upper, right, and lower pixel coordinate. See
|
||||||
|
|
Loading…
Reference in New Issue
Block a user