Re: - [NSBitmapImageRep tiffRepresentation] malloc error
Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- Subject: Re: - [NSBitmapImageRep tiffRepresentation] malloc error
- From: David Duncan <email@hidden>
- Date: Mon, 15 Dec 2008 09:39:30 -0800
On Dec 13, 2008, at 6:08 AM, Thomas Clement wrote:
Looks like this is what I need.
Now I also need to read pixel values from images on disk. For the
same reason I'd like to avoid loading the entire image into memory.
Is it possible to access pixel values piece by piece? I can't find
how to do that using data providers.
There isn't a direct way to do this unfortunately, as the only way to
read from a data provider is to obtain the entire data block. Please
file a bug requesting a solution for this.
The work around is to draw the part of the image you want to work
with. You can do this with either AppKit or Core Graphics using
NSBitmapImageRep or a bitmap context (created via
CGBitmapContextCreate).
--
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