Merge pull request #1412 from valeriomazzeo/1382-CMYK-ColorSpace
added CMYK unsupported color space model
This commit is contained in:
commit
6c650f910e
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue