示例#1
0
        public bool IsValid()
        {
            MotionFileInfo fi = new MotionFileInfo(this.FileName);

            if (false == fi.IsValid() || 0 == this.FileSize)
            {
                return(false);
            }
            try
            {
                Bitmap b = new Bitmap(this.FileName);
                b.Dispose();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
示例#2
0
        public bool IsValid()
        {
            MotionFileInfo fi = new MotionFileInfo(this.FileName);

            if (false == fi.IsValid())
            {
                return(false);
            }
            try
            {
                this.Open();
                this.Close();
            }
            catch (Exception)
            {
                return(false);
            }
            return(true);
        }
示例#3
0
 public bool IsValid()
 {
     MotionFileInfo fi = new MotionFileInfo(this.FileName);
     if (false == fi.IsValid() || 0 == this.FileSize)
     {
         return false;
     }
     try
     {
         Bitmap b = new Bitmap(this.FileName);
         b.Dispose();
         return true;
     }
     catch (Exception)
     {
         return false;
     }
 }
示例#4
0
 public bool IsValid()
 {
     MotionFileInfo fi = new MotionFileInfo(this.FileName);
     if (false == fi.IsValid())
     {
         return false;
     }
     try
     {
         this.Open();
         this.Close();
     }
     catch (Exception)
     {
         return false;
     }
     return true;
 }