mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 08:14:10 +03:00
Explicitly declare code as Python [ci skip]
This commit is contained in:
parent
d53602ea6e
commit
f67f819a3d
|
@ -159,6 +159,8 @@ can be used with most uncompressed file formats, such as PPM, BMP, uncompressed
|
||||||
TIFF, and many others. To use the raw decoder with the
|
TIFF, and many others. To use the raw decoder with the
|
||||||
:py:func:`PIL.Image.frombytes` function, use the following syntax::
|
:py:func:`PIL.Image.frombytes` function, use the following syntax::
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
image = Image.frombytes(
|
image = Image.frombytes(
|
||||||
mode, size, data, "raw",
|
mode, size, data, "raw",
|
||||||
raw mode, stride, orientation
|
raw mode, stride, orientation
|
||||||
|
@ -269,6 +271,8 @@ image memory.
|
||||||
To use the bit decoder with the :py:func:`PIL.Image.frombytes` function, use
|
To use the bit decoder with the :py:func:`PIL.Image.frombytes` function, use
|
||||||
the following syntax::
|
the following syntax::
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
image = Image.frombytes(
|
image = Image.frombytes(
|
||||||
mode, size, data, "bit",
|
mode, size, data, "bit",
|
||||||
bits, pad, fill, sign, orientation
|
bits, pad, fill, sign, orientation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user