Re: - [NSBitmapImageRep tiffRepresentation] malloc error
Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- Subject: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- From: Thomas Clement <email@hidden>
- Date: Tue, 16 Dec 2008 23:07:03 +0100
On Dec 16, 2008, at 8:00 PM, David Duncan wrote:
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.
That's unfortunate.
As suggested, I filed a bug report rdar://6449952
Thanks again for your help!
Thomas
_______________________________________________
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