Skip to content

Commit

Permalink
Document apply_transparency()
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 11, 2022
1 parent 11be163 commit 70a060e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/reference/Image.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.apply_transparency
.. automethod:: PIL.Image.Image.convert

The following example converts an RGB image (linearly calibrated according to
Expand Down
9 changes: 6 additions & 3 deletions docs/releasenotes/9.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ TODO
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
========
Expand Down

0 comments on commit 70a060e

Please sign in to comment.