I have been reading the code that was suggested to me in this thread here: How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
I am wondering how I would implement the code in the following manner:
-(IBAction)getRGB:(id)sender {
// Call getRGBAsFromImage here when pressed.
}
+ (NSArray*)getRGBAsFromImage:(UIImage*)image atX:(int)xx andY:(int)yy count:(int)count {
...
}
Thank you very much.
Edit for 0x90:
-(IBAction)getRGB:(id)sender {
UIImage *image = [UIImage imageNamed:@"IMG_0121.JPG"];
[self getRGBAsFromImage:image atX:40 andY:40 count:40];
}