Re: NSImage TIFFRepresentation memory leak
Re: NSImage TIFFRepresentation memory leak
- Subject: Re: NSImage TIFFRepresentation memory leak
- From: Heinrich Giesen <email@hidden>
- Date: Sat, 2 Dec 2006 11:23:11 +0100
Roland Torres wrote:
Is there an easier way to go from a CIImage to an image file?
Roland wants to writeout a CIImage and to do this he creates an
NSCIImage
and from this he gets data via -TIFFRepresentation.
Troy Stephens gave a code example for a much easier way in:
http://www.cocoabuilder.com/archive/message/cocoa/2005/5/18/136311
Troy Stephens writes:
It's about the same amount of source code as what you had, but avoids
the unnecessary allocation of the intermediate "TIFFRepresentation"
data and NSImage.
Heinrich
--
Heinrich Giesen
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden