Allow automatic conversion to RGB, RGBA, etc while decoding.
Note
You don’t need to use this struct, you can just pass strings to all mode
parameters, e.g. mode="RGB"
.
The different available modes are the following.
UNCHANGED: loads the image as-is
RGB: converts to RGB
RGBA: converts to RGB with transparency (also aliased as RGB_ALPHA)
GRAY: converts to grayscale
GRAY_ALPHA: converts to grayscale with transparency
Note
Some decoders won’t support all possible values, e.g. GRAY and GRAY_ALPHA are only supported for PNG and JPEG images.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4