mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[ColorPicker]Fixing decimal value calculation (#22669)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user