Skip to content

Instantly share code, notes, and snippets.

@hasanadil
Created August 14, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hasanadil/5b18a276d1277c73d0b3 to your computer and use it in GitHub Desktop.
Save hasanadil/5b18a276d1277c73d0b3 to your computer and use it in GitHub Desktop.
#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