public class ImgTool extends Object
| 构造器和说明 |
|---|
ImgTool() |
public static void FitTableColumns(JTable myTable)
public static BufferedImage cutImage(BufferedImage img, int x, int y, int w, int h)
public static BufferedImage binaryzationImage2(BufferedImage image)
public static BufferedImage grayscaleImage(BufferedImage image)
image - public static BufferedImage imageEnlarge(BufferedImage image, double i)
image - i - public static BufferedImage imageStretching(BufferedImage image, int width, int height)
image - width - height - public static BufferedImage clearAdhesion(BufferedImage image)
image - public static double[] imageToDoubleArrays(BufferedImage bimage)
public static BufferedImage binaryzationImage(BufferedImage src)
src - public static BufferedImage imageInverse(BufferedImage src)
src - public static byte[] ImgToByteArray(BufferedImage image)
public static BufferedImage byteArrayToImg(byte[] body)
public static BufferedImage StringToBufferedImage(String image)
image - public static String BufferedImageToString(BufferedImage image)
image - public static String getColorInHexFromRGB(int r, int g, int b)
public static void saveToFile(BufferedImage object, String path)
public static byte[] BufferedImageCompress(BufferedImage bufferedImage, float quality)
Copyright © 2021. All rights reserved.