mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix img
This commit is contained in:
@@ -482,7 +482,6 @@ public class Img implements Serializable {
|
||||
public Img pressImage(Image pressImg, int x, int y, float alpha) {
|
||||
final int pressImgWidth = pressImg.getWidth(null);
|
||||
final int pressImgHeight = pressImg.getHeight(null);
|
||||
|
||||
return pressImage(pressImg, new Rectangle(x, y, pressImgWidth, pressImgHeight), alpha);
|
||||
}
|
||||
|
||||
|
@@ -60,7 +60,10 @@ public class ImgUtilTest {
|
||||
@Test
|
||||
@Ignore
|
||||
public void pressImgTest() {
|
||||
ImgUtil.pressImage(FileUtil.file("d:/picTest/1.jpg"), FileUtil.file("d:/picTest/dest.jpg"), ImgUtil.read(FileUtil.file("d:/picTest/1432613.jpg")), 0, 0, 0.1f);
|
||||
ImgUtil.pressImage(
|
||||
FileUtil.file("d:/test/617180969474805871.jpg"),
|
||||
FileUtil.file("d:/test/dest.png"),
|
||||
ImgUtil.read(FileUtil.file("d:/test/vbbb.png")), 0, 0, 0.9f);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user