public class ImageUtil extends Object
描述:https://www.jianshu.com/p/13d94f2a8f64
创建时间:2021-12-15 18:16
更新时间:暂无
| 构造器和说明 |
|---|
ImageUtil() |
public static BufferedImage cutting(BufferedImage source, int startX, int startY, int width, int height)
public static BufferedImage read(String path)
public static BufferedImage read(File file)
public static BufferedImage resize(int w, int h, BufferedImage image)
public static BufferedImage writeFont(BufferedImage image, List<ImageFontData> fonts)
public static BufferedImage cover(BufferedImage image, BufferedImage cover, int x, int y)
public static BufferedImage merge(BufferedImage image1, BufferedImage image2, boolean horizontal)
public static BufferedImage drawRect(BufferedImage image, Rectangle rect, Color color)
public static BufferedImage drawLine(BufferedImage image, Rectangle rect, Color color)
public static BufferedImage drawText(BufferedImage image, String text, Point start, Color color, int fontSize)
public static BufferedImage drawLine(BufferedImage image, Point a, Point b, Color color)
public static BufferedImage drawInterestPoint(BufferedImage image, List<Point> points)
public static Color randomColor()
public static Color randomStrongColor()
Copyright © 2022. All rights reserved.