Пример #1
0
        static void EncodeAsync(object param)
        {
            TransPara para    = (TransPara)param;
            string    file    = para.Inputfile;
            string    outfile = para.Outputfile;

            png2rgba(file, outfile);
        }
Пример #2
0
        static void DecodeOne(object param)
        {
            TransPara para    = (TransPara)param;
            string    file    = para.Inputfile;
            string    outfile = para.Outputfile;

            //string outfile = outputfolder + "\\" + Path.GetFileNameWithoutExtension(file) + ".PNG";
            if (rgba2png(file, outfile) != ConvertResult.Success)
            {
                try {
                    byte2png(file, outfile);
                }
                catch (Exception e) {
                    File.Copy(what, outfile);
                    //return false;
                }
            }
            //return true;
        }
Пример #3
0
        void RefractHandler(object param)
        {
            TransPara para = (TransPara)param;

            IFS.RefractList(para.Inputfile, para.Inputdir, para.Outputdir);
        }