added CMYK unsupported color space model
This commit is contained in:
parent
740cd7f090
commit
e709a04e89
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue