On Feb 3, 2011, at 1:32 PM, Paul Morel wrote:

> in my application I would need to save an image where pixel intensities are 
> floating point values. Apparently TIFF can support that.But I don't know I 
> can do that in Objective-C. I saw that there is a bitmap format 
> "NSFloatingPointSamplesBitmapFormat" that can be used. Does anybody knows how 
> to use it? I tried to use a (float **) instead of (unsigned char **) but it 
> doesn't work of course, because it is supposed to receive (unsigned char **)! 

Did you try just allocating an appropriately sized buffer and typecasting to 
(unsigned char **)? The type cast doesn't change the data, just the compiler's 
interpretation of it (and since this is a pointer that won't affect the data 
itself in anyway).
--
David Duncan

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to