mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36: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
|
||||
image.
|
||||
|
||||
:param alpha_only: Optional flag, defaulting to true.
|
||||
If true and the image has an alpha channel, trim transparent pixels.
|
||||
:param alpha_only: Optional flag, defaulting to ``True``.
|
||||
If ``True`` and the image has an alpha channel, trim transparent pixels.
|
||||
Otherwise, trim pixels when all channels are zero.
|
||||
:returns: The bounding box is returned as a 4-tuple defining the
|
||||
left, upper, right, and lower pixel coordinate. See
|
||||
|
|
Loading…
Reference in New Issue
Block a user