Merge pull request #3740 from radarhere/remap_palette

Corrected remap_palette documentation
This commit is contained in:
Hugo 2019-03-28 11:47:36 +02:00 committed by GitHub
commit e7c2828b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1688,7 +1688,7 @@ class Image(object):
Rewrites the image to reorder the palette.
:param dest_map: A list of indexes into the original palette.
e.g. [1,0] would swap a two item palette, and list(range(255))
e.g. [1,0] would swap a two item palette, and list(range(256))
is the identity transform.
:param source_palette: Bytes or None.
:returns: An :py:class:`~PIL.Image.Image` object.