Merge pull request #6415 from radarhere/doc

This commit is contained in:
Hugo van Kemenade 2022-07-06 21:01:54 +03:00 committed by GitHub
commit b0185e4e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -141,6 +141,10 @@ The fields are used as follows:
uncompressed data, in a variety of pixel formats. For more information on uncompressed data, in a variety of pixel formats. For more information on
this decoder, see the description below. this decoder, see the description below.
A list of C decoders can be seen under codecs section of the function array
in :file:`_imaging.c`. Python decoders are registered within the relevant
plugins.
**region** **region**
A 4-tuple specifying where to store data in the image. A 4-tuple specifying where to store data in the image.

View File

@ -715,6 +715,11 @@ class Image:
:param encoder_name: What encoder to use. The default is to :param encoder_name: What encoder to use. The default is to
use the standard "raw" encoder. use the standard "raw" encoder.
A list of C encoders can be seen under
codecs section of the function array in
:file:`_imaging.c`. Python encoders are
registered within the relevant plugins.
:param args: Extra arguments to the encoder. :param args: Extra arguments to the encoder.
:returns: A :py:class:`bytes` object. :returns: A :py:class:`bytes` object.
""" """