Color types added to readme

This commit is contained in:
Niles Rogoff 2016-11-30 19:46:32 -05:00 committed by Niles Rogoff
parent 0c76385f8b
commit 9d0d0a9b42
No known key found for this signature in database
GPG Key ID: B78B908F23430F80
1 changed files with 9 additions and 0 deletions

View File

@ -79,3 +79,12 @@ Deletes all IDAT chunks except the first one, then sets that chunk's data to the
## Indexes ## Indexes
Any function that takes an index can be passed either the numerical index of the chunk (so 0 for IDAT, 1 for the second chunk, -1 for the last chunk, etc..), or a list that exists in `img.chunks`, or a 4-length bytes object that is equal to the label of one of the chunks in the image. If a chunk with that label appears more than once, the first one will be used Any function that takes an index can be passed either the numerical index of the chunk (so 0 for IDAT, 1 for the second chunk, -1 for the last chunk, etc..), or a list that exists in `img.chunks`, or a 4-length bytes object that is equal to the label of one of the chunks in the image. If a chunk with that label appears more than once, the first one will be used
## Color types
The following color types are defined
GREYSCALE = 0
RGB = 2
PALETTE = 3
GREYSCALE_WITH_ALPHA = 4
RGB_WITH_ALPHA = 6