改为 仅Mac用
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 162 KiB |
|
After Width: | Height: | Size: 167 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 110 KiB |
|
|
@ -308,9 +308,9 @@ public class Windows {
|
|||
list.add(map);
|
||||
|
||||
if (idcode[3].equals("男")) {
|
||||
file1 = baseDir + "\\images\\" + getPic(1);
|
||||
file1 = baseDir + "/images/" + getPic(1);
|
||||
} else {
|
||||
file1 = baseDir + "\\images\\" + getPic(2);
|
||||
file1 = baseDir + "/images/" + getPic(2);
|
||||
}
|
||||
wm.createMark(file1, tagerDir + idcode[4] + "_" + name +"_idz" + ".jpg", list);
|
||||
Thread.sleep(200);
|
||||
|
|
@ -427,9 +427,9 @@ public class Windows {
|
|||
list.add(map);
|
||||
|
||||
if (idcode[3].equals("男")) {
|
||||
file1 = baseDir + "\\images\\" + getPic(1);
|
||||
file1 = baseDir + "/images/" + getPic(1);
|
||||
} else {
|
||||
file1 = baseDir + "\\images\\" + getPic(2);
|
||||
file1 = baseDir + "/images/" + getPic(2);
|
||||
}
|
||||
wm.createMark(file1, tagerDir + "idz" + num + ".jpg", list);
|
||||
System.out.println("民族:" + wm.getZu() + ",出生日期:" + idcode[0] + idcode[1] + idcode[2]);
|
||||
|
|
@ -572,7 +572,7 @@ public class Windows {
|
|||
String file = null;
|
||||
File fileo1 = null;
|
||||
for (int i = 0; i < Util.idz_nan.length; i++) {
|
||||
file = baseDir + "\\images\\" + Util.idz_nan[i];
|
||||
file = baseDir + "/images/" + Util.idz_nan[i];
|
||||
fileo1 = new File(file);
|
||||
if (!fileo1.exists()) {
|
||||
copyFormJar(wm, "/" + Util.idz_nan[i], file);
|
||||
|
|
@ -580,7 +580,7 @@ public class Windows {
|
|||
}
|
||||
|
||||
for (int i = 0; i < Util.idz_nv.length; i++) {
|
||||
file = baseDir + "\\images\\" + Util.idz_nv[i];
|
||||
file = baseDir + "/images/" + Util.idz_nv[i];
|
||||
fileo1 = new File(file);
|
||||
if (!fileo1.exists()) {
|
||||
copyFormJar(wm, "/" + Util.idz_nv[i], file);
|
||||
|
|
@ -636,10 +636,10 @@ public class Windows {
|
|||
|
||||
Windows wm = new Windows();
|
||||
String url = wm.getClass().getResource("/images/idf.jpg").getPath();
|
||||
url = Util.StringDecode("D:\\sy-work\\IdcodeGenerater");
|
||||
url = Util.StringDecode("D:/sy-work/IdcodeGenerater");
|
||||
String baseDir = getJarDir(url);
|
||||
createDir(baseDir + "\\images\\");
|
||||
String newDir = baseDir + "\\idcode\\";
|
||||
createDir(baseDir + "/images/");
|
||||
String newDir = baseDir + "/idcode/";
|
||||
|
||||
System.out.println("请输入需要要保存的路径(默认保存当前路径,若要默认直接按回车即可)...");
|
||||
arg = sc.nextLine();
|
||||
|
|
@ -668,12 +668,12 @@ public class Windows {
|
|||
public static void main(String[] args) {
|
||||
|
||||
Windows wm = new Windows();
|
||||
String url = Util.StringDecode("D:\\sy-work\\idCardGenerator\\src");
|
||||
String url = Util.StringDecode("/Users/zhuqunfeng/WorkStudio/PrivateSpace/idCardGenerator/src");
|
||||
String baseDir = getJarDir(url);
|
||||
String newDir = baseDir + "\\idcode\\";
|
||||
String newDir = baseDir + "/idcode/";
|
||||
createDir(newDir);
|
||||
checkImage(wm, baseDir);
|
||||
generateIdcodeZ(baseDir, newDir, "孙晨");
|
||||
generateIdcodeZ(baseDir, newDir, "王晨");
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 161 KiB |
|
After Width: | Height: | Size: 167 KiB |