Exemple #1
0
 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);
     }
 }
Exemple #2
0
        public static byte[] GetImage(string imagePath)
        {
            string fullPath = Path.Combine(LisConfig.GetGSRemotePath(), imagePath);

            return(IMGTools.ReadImageFile(fullPath));
        }