|
|
|
@ -308,8 +308,8 @@ public final class QrCode {
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
|
|
|
|
sb.append("<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n");
|
|
|
|
|
sb.append(String.format("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 %1$d %1$d\">\n", size + border * 2));
|
|
|
|
|
sb.append("\t<rect width=\"100%\" height=\"100%\" fill=\"#FFFFFF\" stroke-width=\"0\"/>\n");
|
|
|
|
|
sb.append(String.format("<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" viewBox=\"0 0 %1$d %1$d\" stroke=\"none\">\n", size + border * 2));
|
|
|
|
|
sb.append("\t<rect width=\"100%\" height=\"100%\" fill=\"#FFFFFF\"/>\n");
|
|
|
|
|
sb.append("\t<path d=\"");
|
|
|
|
|
boolean head = true;
|
|
|
|
|
for (int y = -border; y < size + border; y++) {
|
|
|
|
@ -323,7 +323,7 @@ public final class QrCode {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
sb.append("\" fill=\"#000000\" stroke-width=\"0\"/>\n");
|
|
|
|
|
sb.append("\" fill=\"#000000\"/>\n");
|
|
|
|
|
sb.append("</svg>\n");
|
|
|
|
|
return sb.toString();
|
|
|
|
|
}
|
|
|
|
|