Created
August 14, 2015 18:23
-
-
Save hasanadil/5b18a276d1277c73d0b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <AppKit/AppKit.h> | |
@interface HAColorFinder : NSObject | |
/* | |
Return the color in the image that is most dominant. | |
Where dominant is defined as the most number of pixels which contain the same color. | |
*/ | |
-(void) fetchDominantColorFromImage:(NSImage*)image | |
withCompletion:(void(^)(NSColor *color, NSTimeInterval processingTime))completion; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment