Document apply_transparency()

This commit is contained in:
Andrew Murray 2022-06-11 22:31:07 +10:00
parent 11be163143
commit 70a060e765
2 changed files with 7 additions and 3 deletions

View File

@ -123,6 +123,7 @@ methods. Unless otherwise stated, all methods return a new instance of the
.. automethod:: PIL.Image.Image.alpha_composite .. automethod:: PIL.Image.Image.alpha_composite
.. automethod:: PIL.Image.Image.apply_transparency
.. automethod:: PIL.Image.Image.convert .. automethod:: PIL.Image.Image.convert
The following example converts an RGB image (linearly calibrated according to The following example converts an RGB image (linearly calibrated according to

View File

@ -57,10 +57,13 @@ TODO
API Additions API Additions
============= =============
TODO Image.apply_transparency
^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^
TODO Added :py:meth:`~PIL.Image.Image.apply_transparency`, a method to take a P mode image
with "transparency" in ``im.info``, and apply the transparency to the palette instead.
The image's palette mode will become "RGBA", and "transparency" will be removed from
``im.info``.
Security Security
======== ========