Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An API inconsistency?



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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.