static void EncodeAsync(object param) { TransPara para = (TransPara)param; string file = para.Inputfile; string outfile = para.Outputfile; png2rgba(file, outfile); }
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; }
void RefractHandler(object param) { TransPara para = (TransPara)param; IFS.RefractList(para.Inputfile, para.Inputdir, para.Outputdir); }