Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NNCColor.m on IOS V5.1 does not handle Grey scale #3

Open
flemingm opened this issue Mar 19, 2013 · 2 comments
Open

NNCColor.m on IOS V5.1 does not handle Grey scale #3

flemingm opened this issue Mar 19, 2013 · 2 comments

Comments

@flemingm
Copy link

Fixed by change to the following:

-(id)initWithColor:(UIColor *)color {
if ((self = [super init])) {
// Need to deal with CTForegroundColor = "<CGColor 0x6d9de00> [<CGColorSpace 0x6d81eb0> (kCGColorSpaceDeviceGray)](0 1)";
if ([color getRed:&_red green:&_green blue:&_blue alpha:&_alpha] == NO) {
CGFloat white;
if ([color getWhite:&white alpha:&_alpha]) {
_blue = _green = _red = white;
// NSLog(@"Grayscale converted to Color");
}
};
}
return self;
}

@echoz
Copy link
Owner

echoz commented Mar 19, 2013

Could you make this a pull request so I can properly attribute the fix? :)

@flemingm
Copy link
Author

when I have time... yes -- will be most lilkey sat or sun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants