public string Process(string fname)
        {
            bool   flag = !this.Enabled;
            string result;

            if (flag)
            {
                result = fname;
            }
            else
            {
                bool flag2 = ImgTypeProcessor.DestType == EMostImageType.None || EMostImageTypeHelper.GetImageType(fname) == ImgTypeProcessor.DestType;
                if (flag2)
                {
                    result = fname;
                }
                else
                {
                    string imageExt = EMostImageTypeHelper.GetImageExt(ImgTypeProcessor.DestType);
                    string text     = FileHelper.GetFileDir(fname) + FileHelper.GetFileNameNoExt(fname) + imageExt;
                    AppContext.GetInstance().MS.LogInfo("图像格式转换:" + fname + "=>" + text);
                    ImgTypeProcessor.SaveImageType(ImgTypeProcessor.DestType, fname, text);
                    result = text;
                }
            }
            return(result);
        }
        private static void SaveImageType(EMostImageType imgtype, string fname, string nfilename)
        {
            ImageCodecInfo    encoderInfo       = ImgTypeProcessor.GetEncoderInfo("image/" + imgtype.ToString().ToLower());
            EncoderParameters encoderParameters = new EncoderParameters(1);
            Encoder           quality           = Encoder.Quality;
            EncoderParameter  encoderParameter  = new EncoderParameter(quality, (long)ImgTypeProcessor.Quality);

            encoderParameters.Param[0] = encoderParameter;
            Bitmap bitmap = new Bitmap(fname);

            bitmap.Save(nfilename, encoderInfo, encoderParameters);
            bitmap.Dispose();
        }