@@ -191,39 +191,34 @@ match PIL’s internal pixel layout. PIL supports a large set of raw modes; for
191
191
complete list, see the table in the :file: `Unpack.c ` module. The following
192
192
table describes some commonly used **raw modes **:
193
193
194
- +-----------+-----------------------------------------------------------------+
195
- | mode | description |
196
- +===========+=================================================================+
197
- | ``1 `` | 1-bit bilevel, stored with the leftmost pixel in the most |
198
- | | |
199
- | | significant bit. 0 means black, 1 means white. |
200
- +-----------+-----------------------------------------------------------------+
201
- | ``1;I `` | 1-bit inverted bilevel, stored with the leftmost pixel in the |
202
- | | |
203
- | | most significant bit. 0 means white, 1 means black. |
204
- +-----------+-----------------------------------------------------------------+
205
- | ``1;R `` | 1-bit reversed bilevel, stored with the leftmost pixel in the |
206
- | | |
207
- | | least significant bit. 0 means black, 1 means white. |
208
- +-----------+-----------------------------------------------------------------+
209
- | ``L `` | 8-bit greyscale. 0 means black, 255 means white. |
210
- +-----------+-----------------------------------------------------------------+
211
- | ``L;I `` | 8-bit inverted greyscale. 0 means white, 255 means black. |
212
- +-----------+-----------------------------------------------------------------+
213
- | ``P `` | 8-bit palette-mapped image. |
214
- +-----------+-----------------------------------------------------------------+
215
- | ``RGB `` | 24-bit true colour, stored as (red, green, blue). |
216
- +-----------+-----------------------------------------------------------------+
217
- | ``BGR `` | 24-bit true colour, stored as (blue, green, red). |
218
- +-----------+-----------------------------------------------------------------+
219
- | ``RGBX `` | 24-bit true colour, stored as (red, green, blue, pad). The pad |
220
- | | |
221
- | | pixels may vary. |
222
- +-----------+-----------------------------------------------------------------+
223
- | ``RGB;L `` | 24-bit true colour, line interleaved (first all red pixels, then|
224
- | | |
225
- | | all green pixels, finally all blue pixels). |
226
- +-----------+-----------------------------------------------------------------+
194
+ +-----------+-------------------------------------------------------------------+
195
+ | mode | description |
196
+ +===========+===================================================================+
197
+ | ``1 `` | | 1-bit bilevel, stored with the leftmost pixel in the most |
198
+ | | | significant bit. 0 means black, 1 means white. |
199
+ +-----------+-------------------------------------------------------------------+
200
+ | ``1;I `` | | 1-bit inverted bilevel, stored with the leftmost pixel in the |
201
+ | | | most significant bit. 0 means white, 1 means black. |
202
+ +-----------+-------------------------------------------------------------------+
203
+ | ``1;R `` | | 1-bit reversed bilevel, stored with the leftmost pixel in the |
204
+ | | | least significant bit. 0 means black, 1 means white. |
205
+ +-----------+-------------------------------------------------------------------+
206
+ | ``L `` | 8-bit greyscale. 0 means black, 255 means white. |
207
+ +-----------+-------------------------------------------------------------------+
208
+ | ``L;I `` | 8-bit inverted greyscale. 0 means white, 255 means black. |
209
+ +-----------+-------------------------------------------------------------------+
210
+ | ``P `` | 8-bit palette-mapped image. |
211
+ +-----------+-------------------------------------------------------------------+
212
+ | ``RGB `` | 24-bit true colour, stored as (red, green, blue). |
213
+ +-----------+-------------------------------------------------------------------+
214
+ | ``BGR `` | 24-bit true colour, stored as (blue, green, red). |
215
+ +-----------+-------------------------------------------------------------------+
216
+ | ``RGBX `` | | 24-bit true colour, stored as (red, green, blue, pad). The pad |
217
+ | | | pixels may vary. |
218
+ +-----------+-------------------------------------------------------------------+
219
+ | ``RGB;L `` | | 24-bit true colour, line interleaved (first all red pixels, then|
220
+ | | | all green pixels, finally all blue pixels). |
221
+ +-----------+-------------------------------------------------------------------+
227
222
228
223
Note that for the most common cases, the raw mode is simply the same as the mode.
229
224
0 commit comments