Merge pull request #1412 from valeriomazzeo/1382-CMYK-ColorSpace

added CMYK unsupported color space model
This commit is contained in:
Konstantinos K 2015-12-31 09:46:02 +02:00
commit 6c650f910e
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef));
CGColorSpaceRef colorspaceRef = CGImageGetColorSpace(imageRef);
bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelIndexed);
bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelCMYK || imageColorSpaceModel == kCGColorSpaceModelIndexed);
if (unsupportedColorSpace)
colorspaceRef = CGColorSpaceCreateDeviceRGB();