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

ToCGColor() should use sRGB colorspace on iOS #56

Open
kayle opened this issue Mar 13, 2017 · 1 comment
Open

ToCGColor() should use sRGB colorspace on iOS #56

kayle opened this issue Mar 13, 2017 · 1 comment
Labels
Milestone

Comments

@kayle
Copy link

kayle commented Mar 13, 2017

Currently I see a different color on iOS 10 if I use the same hex background color for a chart as another control on the page (e.g. "#25373E"). Using the Srgb color space seems to fix the issue for me.

var space = CoreGraphics.CGColorSpace.CreateSrgb();
var cgColor = new CGColor(space, new nfloat[] { c.R / 255f, c.G / 255f, c.B / 255f, c.A / 255f });
return cgColor;
@HEFRNicolas
Copy link

I'm also having trouble with colours on iOS. In my case I've set the background of my layout to the same colour of one of my pie slices, but it looks like the pie slice is a bit lighter.
screen shot 2017-07-17 at 10 06 05

@objorke objorke added this to the v2.0 milestone Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants