- (NSBitmapImageRep *)bitmapImageRepByConvertingTosRGBColorSpace {
return [self bitmapImageRepByConvertingToColorSpace:[NSColorSpace sRGBColorSpace]
renderingIntent:NSColorRenderingIntentDefault];
}
- (NSData *)PNGRepresentationInsRGBColorSpace {
return [[self bitmapImageRepByConvertingTosRGBColorSpace] PNGRepresentationAsProgressive:NO];
}
No comments:
Post a Comment