Что означает код ошибки Windows 2017 (ERROR_INVALID_COLORSPACE)?

 
Предыдущий Следующий
ERROR_PROFILE_NOT_FOUND ERROR_ICM_NOT_ENABLED

ERROR_INVALID_COLORSPACE

Что означает ERROR_INVALID_COLORSPACE

ERROR_INVALID_COLORSPACE — указано недопустимое цветовое пространство.

Что проверить

  • Зафиксируйте цветовое пространство и профиль, переданные функции управления цветом.
  • Проверьте, поддерживает ли конкретный API это цветовое пространство и согласуются ли исходный, целевой профили и формат пикселей.
  • Если значение формируется из заголовка изображения или профиля, проверьте его до создания преобразования.

Что делать

Передайте поддерживаемое цветовое пространство и согласованный набор профилей/форматов.

Исходная формулировка

  • The logical or profile color space is invalid for the requested color operation.
  • Capture the API, structure size/version, declared color-space and PCS signatures, bitmap pixel format, component count and bit depth, profile classes/hashes, rendering intent, transform order, device type, and validation results.
  • Developers should use typed mappings between graphics formats and color spaces, validate component counts, and include transform tuples in tests. Production workflows should fail visibly rather than silently treating CMYK or Lab data as RGB.
  • An image importer labels four-channel CMYK bytes as an RGB source while creating a monitor transform. The profiles validate, but transform setup returns 2017. Mapping the image to a CMYK source profile and then converting to the display profile fixes component interpretation.
  • Correct the color-space declaration, choose compatible source/destination profiles, or convert the pixel data into a supported intermediate space. Regenerate malformed profiles or logical color-space structures from authoritative calibration data.

Технические ссылки


Нужно найти другой код? Найти другой код состояния или ошибки.