Re: - [NSBitmapImageRep tiffRepresentation] malloc error
Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- Subject: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- From: David Duncan <email@hidden>
- Date: Tue, 16 Dec 2008 11:00:09 -0800
On Dec 16, 2008, at 10:39 AM, Thomas Clement wrote:
That's right, I was not doing it correctly, this is now working.
Also I noticed I can call CGImageCreateWithImageInRect to create a
new CGImage which is a smaller area of the original image and then
call CGImageGetDataProvider and CGDataProviderCopyData to get the
pixel data.
Seem easier and faster too. However CGDataProviderCopyData is 10.5
minimum.
Unfortunately due to a bug that doesn't always work correctly. If you
file a bug, reference bug 5889934.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden