mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
添加给图片添加全屏文字水印的方法
This commit is contained in:
@@ -54,9 +54,10 @@ public class ImgTest {
|
||||
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testPressTextFullScreen() {
|
||||
Img.from(FileUtil.file("d:/test/2.jpg"))
|
||||
.pressTextFullScreen("版权所有 仿冒必究 进程已结束", Color.LIGHT_GRAY,
|
||||
.pressTextFullScreen("版权所有 仿冒必究", Color.LIGHT_GRAY,
|
||||
new Font("微软雅黑", Font.BOLD, 100),
|
||||
-30,
|
||||
1f)
|
||||
|
Reference in New Issue
Block a user