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 { public static float MaxColorValue; 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 / 1.2 / MaxColorValue; return ColorRGB.GetSpecColor(flag); } } }