added CMYK unsupported color space model
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -40,7 +40,7 @@ | @@ -40,7 +40,7 @@ | ||
40 | CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef)); | 40 | CGColorSpaceModel imageColorSpaceModel = CGColorSpaceGetModel(CGImageGetColorSpace(imageRef)); |
41 | CGColorSpaceRef colorspaceRef = CGImageGetColorSpace(imageRef); | 41 | CGColorSpaceRef colorspaceRef = CGImageGetColorSpace(imageRef); |
42 | 42 | ||
43 | - bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelIndexed); | 43 | + bool unsupportedColorSpace = (imageColorSpaceModel == 0 || imageColorSpaceModel == -1 || imageColorSpaceModel == kCGColorSpaceModelCMYK || imageColorSpaceModel == kCGColorSpaceModelIndexed); |
44 | if (unsupportedColorSpace) | 44 | if (unsupportedColorSpace) |
45 | colorspaceRef = CGColorSpaceCreateDeviceRGB(); | 45 | colorspaceRef = CGColorSpaceCreateDeviceRGB(); |
46 | 46 |
-
Please register or login to post a comment