0

I have this code and I want to call this class method to obtain some parameters for an imageView but I don't know how to call it, can you help me ?

+ (NSArray*)getRGBAsFromImage:(UIImage*)image atX:(int)xx andY:(int)yy count:(int)count
dove
  • 20,469
  • 14
  • 82
  • 108
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241

2 Answers2

0

You can call that method using your class name.

If your class is like:

@interface myClass

+ (NSArray*)getRGBAsFromImage:(UIImage*)image atX:(int)xx andY:(int)yy count:(int)count

@end

you can call this method like:

NSArray *temp = [myClass getRGBAsFromImage:yourImage atX:x andY:y count:count];
Midhun MP
  • 103,496
  • 31
  • 153
  • 200
0

To call it you just use the class name...

If this is on UIImage then...

[UIImage getRGBAsFromImage:someImage atX:xVal andY:yVal count:countVal];
Fogmeister
  • 76,236
  • 42
  • 207
  • 306