Sunday, February 16, 2014

Generic RGB Profile Convert sRGB IEC61966-2.1

- (NSBitmapImageRep *)bitmapImageRepByConvertingTosRGBColorSpace {
    return [self bitmapImageRepByConvertingToColorSpace:[NSColorSpace sRGBColorSpace]
                                                                            renderingIntent:NSColorRenderingIntentDefault];
}

- (NSData *)PNGRepresentationInsRGBColorSpace {
    return [[self bitmapImageRepByConvertingTosRGBColorSpace] PNGRepresentationAsProgressive:NO];
}

No comments:

Post a Comment