* remember operation params in last image proceed action
* @param vo
*/
public static void rememberOperParams(ImageActionParamsVO vo) {
try{
Config config = Config.getInstance();
//image choose
if(vo.getInputFiles() != null && vo.getInputFiles().length > 0){
config.setValue("input_files", vo.getInputFiles()[0].getAbsolutePath());
}
if(vo.getOutputFolder() != null){
config.setValue("output_folder", vo.getOutputFolder().getAbsolutePath());
}
config.setValue("override", vo.isOverride());
//export options
config.setValue("quality", vo.getQuality());
config.setValue("apply_resize", vo.isApplyResize());
config.setValue("resize", vo.getResize());
config.setValue("resize_index", vo.getResizeIndex());
//corner round
config.setValue("apply_round", vo.isApplyRound());
config.setValue("corner_size", vo.getCornerSize());
//exif info
config.setValue("apply_exif", vo.isApplyExif());
config.setValue("exif_style", vo.getExifStyle());
config.setValue("append_camera", vo.isAppendCamera());
config.setValue("append_date", vo.isAppendDate());
config.setValue("append_apt", vo.isAppendApt());
config.setValue("append_exp", vo.isAppendExp());
config.setValue("append_focal", vo.isAppendFocal());
config.setValue("append_iso", vo.isAppendIso());
config.setValue("sign", vo.getSign());
config.setValue("exif_font", UIUtil.getFontDescription(vo.getExifFont()));
//text watermark
config.setValue("apply_text_watermark", vo.isApplyWatermarkText());
config.setValue("text_watermark_style", vo.getWatermarkTextStyle());
config.setValue("text_watermark", vo.getWatermarkText());
config.setValue("text_watermakr_font", UIUtil.getFontDescription(vo.getWatermarkTextFont()));
config.setValue("text_watermakr_color", vo.getWatermarkColor().getRGB());
config.setValue("text_watermark_alpha", vo.getWatermarkTextAlpha());
config.storeConf();
}catch(Exception e){
e.printStackTrace();;
}
}