Highlight code

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2023-06-14 11:25:42 +10:00 committed by GitHub
parent bae918280d
commit d7c7b832f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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