This commit is contained in:
sc committed 2022-03-06 23:58:51 +08:00
commit 6bc5d12a29
2 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -14,12 +14,12 @@ namespace Audit.ConvertMoels
/// </summary>
public class ColorSQLConvert : IValueConverter
{
/// <summary>
/// </summary>
/// <summary>
/// </summary>
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null)
{
{
string colorValue = string.Format("{0:X6}", value);//十进制RGB数值转十六进制六位RGB并补0位例“C0C0C0”
/*string StuffColor = "#FF" + colorValue;//RGB数值拼接为ARGB数值(正向)*/
string StuffColor_B = colorValue.Substring(0, 2);//获取蓝色参数