added CMYK unsupported color space model

This commit is contained in:
Valerio Mazzeo 2015-12-30 15:45:14 +00:00
parent 740cd7f090
commit e709a04e89
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef)); CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef));
CGColorSpaceRef colorspaceRef = 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) if (unsupportedColorSpace)
colorspaceRef = CGColorSpaceCreateDeviceRGB(); colorspaceRef = CGColorSpaceCreateDeviceRGB();