mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Merge pull request #4912 from MauveRanger/patch-2
Clarify that modes are strings, not constants
This commit is contained in:
commit
7e06a91ce6
|
@ -24,7 +24,7 @@ To get the number and names of bands in an image, use the
|
||||||
Modes
|
Modes
|
||||||
-----
|
-----
|
||||||
|
|
||||||
The ``mode`` of an image defines the type and depth of a pixel in the image.
|
The ``mode`` of an image is a string which defines the type and depth of a pixel in the image.
|
||||||
Each pixel uses the full range of the bit depth. So a 1-bit pixel has a range
|
Each pixel uses the full range of the bit depth. So a 1-bit pixel has a range
|
||||||
of 0-1, an 8-bit pixel has a range of 0-255 and so on. The current release
|
of 0-1, an 8-bit pixel has a range of 0-255 and so on. The current release
|
||||||
supports the following standard modes:
|
supports the following standard modes:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user