private static void InitNormalImage() { if (itemNormalName.Count == 0) { InitNormalName(); } foreach (DictionaryEntry de in itemNormalName) { byte[] result = IMGTools.ReadImageFile(Path.Combine(System.Environment.CurrentDirectory, "normal", de.Value.ToString())); itemNormalImage.Add((int)de.Key, result); } }
public static byte[] GetImage(string imagePath) { string fullPath = Path.Combine(LisConfig.GetGSRemotePath(), imagePath); return(IMGTools.ReadImageFile(fullPath)); }