mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add methods
This commit is contained in:
@@ -55,12 +55,14 @@ public class ImgTest {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void testPressTextFullScreen() {
|
||||
Img.from(FileUtil.file("d:/test/2.jpg"))
|
||||
.pressTextFullScreen("版权所有 仿冒必究", Color.LIGHT_GRAY,
|
||||
new Font("微软雅黑", Font.BOLD, 100),
|
||||
-30,
|
||||
1f)
|
||||
public void pressTextFullScreenTest() {
|
||||
Img.from(FileUtil.file("d:/test/1435859438434136064.jpg"))
|
||||
.setTargetImageType(ImgUtil.IMAGE_TYPE_PNG)
|
||||
.pressTextFull("版权所有 ", Color.LIGHT_GRAY,
|
||||
new Font("黑体", Font.PLAIN, 30),
|
||||
4,
|
||||
30,
|
||||
0.8f)
|
||||
.write(FileUtil.file("d:/test/2_result.png"));
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user