Thanks a lot for your response. >> Is it safe to do it after assigning the nsimage to the layer, but before >> deleting the layer? > I would think so, but it is hard to say without knowing what > convertToNSImage:withOrientation actually does under the hood. It likely > either retains or copies it.
Very sorry for that - this is what it does:
CIImage * image = [CIImage imageWithCGImage: imageRef];
CIImage * orientedimage = [image imageByApplyingOrientation:
(CGImagePropertyOrientation) img_orientation];
NSCIImageRep * nsimgrep = [NSCIImageRep imageRepWithCIImage: orientedimage];
NSImage * nsImage = [[NSImage alloc] initWithSize: nsimgrep.size];
[nsImage addRepresentation: nsimgrep];
return NSImage;
Best regards, Gabriel
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
