On Jun 14, 2005, at 10:44 AM, Steven Troughton-Smith wrote:
Possibly try:
[bitmapRep TIFFRepresentation]
?
Yes, my point is NSBitmapImageRep returns (NSData *) for most things,
but not for -bitmapData.
For some reason, it returns (unsigned char *) pointer instead of
(NSData *). Even +imageRepWithData:
and -initWithData: use (NSData *) argument, not (unsigned char *).
So I think API is inconsistent?
Roland
On 14 Jun 2005, at 18:39, Roland Torres wrote:
An API inconsistency?
This blows up:
NSBitmapImageRep *bitmapRep;
. . .
// init bitmapRep here
. . .
[CIImage imageWithBitmapData:[bitmapRep bitmapData] ::::];
because NSBitmapImageRep returns (unsigned char *) for -bitmapData
method
but CIImage expects (NSData *) input in -imageWithBitmapData:::::
method.
Should not both use same datatype or object? Or do I use wrong
method?
Roland
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden