Merge branch 'develop_migration' into 'develop_master'

Develop migration

See merge request LiuChao/foton-slrs-system-rest!228
This commit is contained in:
super_liu
2021-11-11 13:48:20 +08:00
@@ -53,14 +53,15 @@ public class WaterMarkUtil {
under.setGState(gs); under.setGState(gs);
under.restoreState(); under.restoreState();
under.beginText(); under.beginText();
under.setFontAndSize(base, 36); under.setFontAndSize(base, 56);
under.setTextMatrix(30, 30); under.setTextMatrix(30, 30);
under.setColorFill(BaseColor.LIGHT_GRAY); under.setColorFill(BaseColor.LIGHT_GRAY);
for (int y = 0; y < 10; y++) { for (int y = 0; y < 10; y++) {
for (int x = 0; x < 8; x++) { for (int x = 0; x < 8; x++) {
// 水印文字成45度角倾斜 // 水印文字成45度角倾斜
under.showTextAligned(Element.ALIGN_LEFT under.showTextAligned(Element.ALIGN_LEFT
, waterMarkName, 100 + 300 * x, 300 * y, 40); } , waterMarkName, 100 + 300 * x, 300 * y, 40);
}
} }
// 添加水印文字 // 添加水印文字