Beispiel #1
0
        public static bool IsBlankImage(string path)
        {
            Image image = ImageHelper.LoadCorectedImage(path);
            bool  flag  = image != null;
            bool  result;

            if (flag)
            {
                bool flag2 = image.IsBlankImge();
                result = flag2;
            }
            else
            {
                result = true;
            }
            return(result);
        }
Beispiel #2
0
        public string Process(string fname)
        {
            bool   flag = !this.Enabled;
            string result;

            if (flag)
            {
                result = fname;
            }
            else
            {
                Bitmap bitmap = ImageHelper.LoadCorectedImage(fname).ToBitmap().ToGrayBitmap();
                bitmap.Save(fname);
                result = fname;
            }
            return(result);
        }