mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-11-29 18:38:30 +08:00
colorpicker
This commit is contained in:
parent
9ef78262a4
commit
b9c99b1f4c
@ -375,7 +375,8 @@ namespace HandyControl.Controls
|
||||
var common = list[commonIndex];
|
||||
list[maxIndex] = 255;
|
||||
list[minIndex] = 0;
|
||||
list[commonIndex] = (byte)(255 * max * (min - common) / (double)(max * (min - max)));
|
||||
common = (byte)(255 * (min - common) / (double)(min - max));
|
||||
list[commonIndex] = common;
|
||||
BackColor = new SolidColorBrush(Color.FromRgb(list[0], list[1], list[2]));
|
||||
|
||||
list[commonIndex] = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user