我有一个功能是目标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