The Decoder module defines various constants that control how various image formats are loaded.
Constants
FIF_LOADNOPIXELS | = | 0x8000 |
Load the image header only (not supported by all plugins) |
|
GIF_DEFAULT | = | 0x0 | ||
GIF_LOAD256 | = | 0x1 |
Load the image as a 256 color image with ununsed palette entries, if it's 16 or 2 color |
|
GIF_PLAYBACK | = | 0x2 |
'Play' the GIF to generate each frame (as 32bpp) instead of returning raw frame data when loading |
|
ICO_DEFAULT | = | 0x0 | ||
JPEG_ACCURATE | = | 0x2 |
Load the file with the best quality, sacrificing some speed |
|
JPEG_CMYK | = | 0x4 |
Load separated CMYK “as is” (use | to combine with other load flags) |
|
JPEG_DEFAULT | = | 0x0 |
Loading (see JPEG_FAST); saving (see JPEG_QUALITYGOOD|JPEG_SUBSAMPLING_420) |
|
JPEG_EXIFROTATE | = | 0x8 |
Load and rotate according to Exif 'Orientation' tag if available |
|
JPEG_FAST | = | 0x1 |
Load the file as fast as possible, sacrificing some quality |
|
PCD_BASE | = | 0x1 |
Load the bitmap sized 768 x 512 |
|
PCD_BASEDIV16 | = | 0x3 |
Load the bitmap sized 192 x 128 |
|
PCD_BASEDIV4 | = | 0x2 |
Load the bitmap sized 384 x 256 |
|
PCD_DEFAULT | = | 0x0 | ||
PNG_IGNOREGAMMA | = | 0x1 |
Loading: avoid gamma correction |
|
PSD_CMYK | = | 0x1 |
Reads tags for separated CMYK (default is conversion to RGB) |
|
PSD_DEFAULT | = | 0x0 | ||
PSD_LAB | = | 0x2 |
Reads tags for CIELab (default is conversion to RGB) |
|
RAW_DEFAULT | = | 0x0 |
Load the file as linear RGB 48-bit |
|
RAW_DISPLAY | = | 0x2 |
Load the file as RGB 24-bit |
|
RAW_HALFSIZE | = | 0x4 |
Output a half-size color image |
|
RAW_PREVIEW | = | 0x1 |
Try to load the embedded JPEG preview with included Exif Data or default to RGB 24-bit |
|
TARGA_LOAD_RGB888 | = | 0x1 |
If set the loader converts RGB555 and ARGB8888 -> RGB888. |
|
TIFF_CMYK | = | 0x1 |
Reads/stores tags for separated CMYK (use | to combine with compression flags) |