mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Document apply_transparency()
This commit is contained in:
parent
11be163143
commit
70a060e765
|
@ -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
|
||||
|
|
|
@ -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
|
||||
========
|
||||
|
|
Loading…
Reference in New Issue
Block a user