Exemplo n.º 1
0
 /// <summary>
 /// »ñȡͼƬ
 /// </summary>
 /// <param name="v_sImgFilePath"></param>
 /// <returns></returns>
 public static Image GetImage(string v_sImgFilePath)
 {
     try
     {
         Image image = (Image)m_htImages[v_sImgFilePath];
         if (image == null)
         {
             image = Image.FromFile(v_sImgFilePath);
             m_htImages.Add(v_sImgFilePath, image);
         }
         return(image);
     }
     catch (Exception e)
     {
         string msg = "´´½¨Í¼Æ¬´íÎó£ºFileName=[" + v_sImgFilePath + "]";
         msg += CommUtil.GetExceptionMsg(e);
         CommUtil.ShowErrMsg(msg);
         return(null);
     }
 }