| Предыдущий | Следующий |
| ERROR_INVALID_TRANSFORM | ERROR_INVALID_COLORINDEX |
ERROR_COLORSPACE_MISMATCH
Что означает ERROR_COLORSPACE_MISMATCH
ERROR_COLORSPACE_MISMATCH — указанное преобразование не соответствует цветовому пространству растрового изображения.
Что проверить
- Сохраните bitmap/pixel format и color transform, переданный ICM/WCS операции.
- Проверьте, что transform создан для color space, совпадающего с фактическим bitmap и профилями источника/назначения.
- После замены профиля не переиспользуйте старый transform, созданный для другой пары цветовых пространств.
Что делать
Создайте согласованное color transform для фактического color space изображения и повторите преобразование.
Исходная формулировка
The selected transform does not accept the bitmap color space or channel layout.
A scanner produces 16-bit gray samples, but the preview cache reuses an sRGB monitor transform and labels the input BM_RGBTRIPLETS . Translation returns 2021. Building a gray-to-monitor transform and using the matching bitmap format resolves the contract.
a proofing or device-link transform is reused for an unrelated preview or export stage
ERROR_INVALID_COLORSPACE means a space declaration or combination is itself invalid. Error 2021 is relational: the transform and bitmap describe different otherwise recognizable spaces.
Select a transform built for the actual source space, or explicitly convert the bitmap into the transform’s expected intermediate format. Recompute caches whenever document mode, profile, rendering intent, or destination changes.
Технические ссылки
- Microsoft: System Error Codes (1700–3999)
- Microsoft: Win32 Error Codes in MS-ERREF
- Microsoft: Error codes specific to WCS
- Microsoft: TranslateBitmapBits
- Microsoft: BMFORMAT
Нужно найти другой код? Найти другой код состояния или ошибки.
