私が機能を持っているが目的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...
}
は、どのように私は関数内で関数を呼び出し、それを実装できること? Imageのサイズ、高さ、幅にどうやってアクセスできますか?
あなたのコードにobjective-cとcの構文を混在させることができます。何が問題なのですか? –