Image Mode Docs

This commit is contained in:
wiredfool 2014-07-26 09:59:33 -07:00
parent 023ec0a2fc
commit 0dabb8ea1c

View File

@ -27,6 +27,8 @@ image. The current release supports the following standard modes:
* ``RGBA`` (4x8-bit pixels, true color with transparency mask)
* ``CMYK`` (4x8-bit pixels, color separation)
* ``YCbCr`` (3x8-bit pixels, color video format)
* ``LAB`` (3x8-bit pixels, the L*a*b color space)
* ``HSV`` (3x8-bit pixels, Hue, Saturation, Value color space)
* ``I`` (32-bit signed integer pixels)
* ``F`` (32-bit floating point pixels)
@ -34,7 +36,7 @@ PIL also provides limited support for a few special modes, including ``LA`` (L
with alpha), ``RGBX`` (true color with padding) and ``RGBa`` (true color with
premultiplied alpha). However, PIL doesnt support user-defined modes; if you
to handle band combinations that are not listed above, use a sequence of Image
objects.
objects.
You can read the mode of an image through the :py:attr:`~PIL.Image.Image.mode`
attribute. This is a string containing one of the above values.