mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Added image to illustrate size vs bbox
This commit is contained in:
parent
617b9cbc00
commit
55d0289a7d
|
@ -253,8 +253,12 @@ Use instead::
|
|||
width, height = right - left, bottom - top
|
||||
|
||||
Previously, the ``size`` methods returned a ``height`` that included the vertical
|
||||
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
|
||||
``top`` offset.
|
||||
offset of the text, while the new ``bbox`` methods distinguish this as a ``top``
|
||||
offset.
|
||||
|
||||
.. image:: ./example/size_vs_bbox.png
|
||||
:alt: Demonstration of size height vs bbox top and bottom
|
||||
:align: center
|
||||
|
||||
FreeTypeFont.getmask2 fill parameter
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
BIN
docs/example/size_vs_bbox.png
Normal file
BIN
docs/example/size_vs_bbox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
|
@ -90,8 +90,12 @@ Use instead::
|
|||
width, height = right - left, bottom - top
|
||||
|
||||
Previously, the ``size`` methods returned a ``height`` that included the vertical
|
||||
offset of the text, while the new ``bbox`` methods explicitly distinguish this as a
|
||||
``top`` offset.
|
||||
offset of the text, while the new ``bbox`` methods distinguish this as a ``top``
|
||||
offset.
|
||||
|
||||
.. image:: ./example/size_vs_bbox.png
|
||||
:alt: Demonstration of size height vs bbox top and bottom
|
||||
:align: center
|
||||
|
||||
API Additions
|
||||
=============
|
||||
|
|
Loading…
Reference in New Issue
Block a user