我有一個功能是目標C,如何在函數中調用函數?
(NSArray *) getRGBsFromImage:(UIImage *)image atX:(int)xx andY:(int)yy count:(int) count {
NSMutableArray *result;
NSUInteger width=...;
NSUInteger height=...;
//algorithm
return result;
}
我執行的是
(NSArray *) convertRGBAsForBW: (NSArray *) grayscaleArray
{
// as input i have to access grayscale array..but this array gives me rgbvalues in an NSArray and also I have to implement image.size, height, width...
}
我怎樣才能實現它的功能,調用函數的功能?以及如何訪問圖像的大小,高度,寬度?
你可以在你的代碼中混合使用objective-c和c語法,那麼這有什麼問題? – 2011-01-27 21:07:28