[ColorPicker]Fixing decimal value calculation (#22669)

This commit is contained in:
Laszlo Nemeth
2022-12-13 17:59:57 +01:00
committed by GitHub
parent 9480013868
commit ba0d41f743
2 changed files with 2 additions and 2 deletions

View File

@@ -120,7 +120,7 @@ namespace ColorPicker.Helpers
/// <returns>a string value number</returns>
private static string ColorToDecimal(Color color)
{
return $"{color.R + (color.G * 256) + (color.B * 65536)}";
return $"{(color.R * 65536) + (color.G * 256) + color.B}";
}
/// <summary>