We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, can I suggest to add to ColorUtils
public static string FromDrawingColor (System.Drawing.Color color, float alpha) => ColorUtil.ColorString (color.R, color.G, color.B, alpha);
The text was updated successfully, but these errors were encountered:
Actually, System.Drawing.Color already has an alpha property. We should just expand FromDrawingColor to also include the alpha.
System.Drawing.Color
FromDrawingColor
Instead of
return ColorHexString(color.R, color.G, color.B);
that would be
return ColorString(color.R, color.G, color.B, (double)color.A / byte.MaxValue);
That should work if I'm not mistaken. We could also consider adding a ColorHexString function with alpha included and use that.
ColorHexString
Feel free to open a PR for this.
Sorry, something went wrong.
Closed by ea4b914. Will be released in the next update.
Successfully merging a pull request may close this issue.
Hi, can I suggest to add to ColorUtils
public static string FromDrawingColor (System.Drawing.Color color, float alpha) => ColorUtil.ColorString (color.R, color.G, color.B, alpha);
The text was updated successfully, but these errors were encountered: