using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XdCxRhDW.Core.Api { public class ImageResult { private static float MaxColorValue = 40;//最大信噪比 public int FsHz { get; set; } public int XFlag { get; set; } public int XMax { get; set; } public float YMax { get; set; } public int XValue { get; set; } public float YValue { get; set; } public float Snr { get; set; } public Color GetColor() { double flag; if (Snr >= MaxColorValue) flag = 1; else flag = Snr / MaxColorValue; return ColorRGB.GetSpecColor(flag); } } }