mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-31 23:44:14 +03:00
commit
ede3e81877
|
@ -2024,7 +2024,7 @@ def frombytes(mode, size, data, decoder_name="raw", *args):
|
||||||
|
|
||||||
You can also use any pixel decoder supported by PIL. For more
|
You can also use any pixel decoder supported by PIL. For more
|
||||||
information on available decoders, see the section
|
information on available decoders, see the section
|
||||||
**Writing Your Own File Decoder**.
|
:ref:`Writing Your Own File Decoder <file-decoders>`.
|
||||||
|
|
||||||
Note that this function decodes pixel data only, not entire images.
|
Note that this function decodes pixel data only, not entire images.
|
||||||
If you have an entire image in a string, wrap it in a
|
If you have an entire image in a string, wrap it in a
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
Writing your own file decoder
|
.. _file-decoders:
|
||||||
|
|
||||||
|
Writing Your Own File Decoder
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
The Python Imaging Library uses a plug-in model which allows you to
|
The Python Imaging Library uses a plug-in model which allows you to
|
||||||
|
|
|
@ -53,7 +53,7 @@ vector data. Path objects can be passed to the methods on the
|
||||||
Converts the path to a Python list [(x, y), …].
|
Converts the path to a Python list [(x, y), …].
|
||||||
|
|
||||||
:param flat: By default, this function returns a list of 2-tuples
|
:param flat: By default, this function returns a list of 2-tuples
|
||||||
[(x, y), ...]. If this argument is :keyword:`True`, it
|
[(x, y), ...]. If this argument is `True`, it
|
||||||
returns a flat list [x, y, ...] instead.
|
returns a flat list [x, y, ...] instead.
|
||||||
:return: A list of coordinates. See **flat**.
|
:return: A list of coordinates. See **flat**.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user