| Previous | Next |
| WINCODEC_ERR_CODECNOTHUMBNAIL | WINCODEC_ERR_CODECTOOMANYSCANLINES |
WINCODEC_ERR_PALETTEUNAVAILABLE
WINCODEC_ERR_PALETTEUNAVAILABLE means that the image or codec has no palette available through the requested WIC operation. Palettes are principally relevant to indexed pixel formats; true-color images normally store component values directly and may not have a color table to copy.
What to check
- Inspect the actual source pixel format before calling palette APIs.
- For a true-color image, convert or quantize only when the destination requires indexed pixels; do not expect an existing palette.
- For indexed input, ask the decoder or frame at the correct level and check that decoding succeeded before copying its palette.
This is usually a capability or data-model mismatch, not a request to regenerate image pixels.
Microsoft: WIC pixel formats and bitmap sources
Looking for a different code? Search another status or error code.