Hi ,I'm having some trouble to save an image. Here is what I do: NSBitmapImageRep* rep = [[[NSBitmapImageRep alloc] initWithCIImage: myCiImage] autorelease]; CGImageRef image = [rep CGImage];NSURL * url = [NSURL fileURLWithPath: path]; CGImageDestinationRef dest = CGImageDestinationCreateWithURL((CFURLRef)url, (CFStringRef)newUTType, 1, NULL); if (dest) { CGImageDestinationAddImage(dest, image, (CFDictionaryRef)[saveOptions imageProperties]); if(!CGImageDestinationFinalize(dest)) {NSLog(@"Error writing file"); } CFRelease(dest);
And I have an error when it is doing CGImageDestinationFinalize(dest)Sometimes it is written : Program received signal: “EXC_BAD_ACCESS”.and sometimes :<Error>: kCGErrorIllegalArgument: CGSReleaseRegion : Invalid region Does anybody knows where it comes from? Apparently it would come from the conversion from a CIImage to a CGImageRef but I don't undesrtand why.Or is there somebody who would know how to save a CIImage ? Thanks, Paul _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com