public class BufferedImageUtils extends Object
Constructor and Description |
---|
BufferedImageUtils() |
public static BufferedImage read(Path filePath, boolean greyscaleCorrection)
public static BufferedImage setAlpha(BufferedImage image, BufferedImage mask)
public static BufferedImage extractAlpha(BufferedImage src)
public static String getColorModelString(BufferedImage image)
public static BufferedImage convertAlphaToCheckerboard(Image originalImage, int checkerSize)
public static BufferedImage convertAlphaToCheckerboard(Image originalImage, int checkerSize, Color checkerColor1, Color checkerColor2)
public static BufferedImage scaleImageToFit(BufferedImage image, int maxWidth, int maxHeight)
public static String imageToBase64(BufferedImage image, String type) throws IOException
IOException
public static BufferedImage base64ToImage(String imageString) throws IOException
IOException
public static BufferedImage toBufferedImage(Image img, int type)
img
- The Image to be convertedtype
- the output image typepublic static BufferedImage getImageFromClipboard(int type)
type
- the image typepublic static BufferedImage copyBufferedImage(BufferedImage bi)
BufferedImage
bi
- the imagepublic static BufferedImage copyBufferedImageToARGB(BufferedImage bi)
BufferedImage
bi
- the imagepublic static BufferedImage copyBufferedImageToRGB(BufferedImage bi)
BufferedImage
bi
- the imagepublic static BufferedImage copyBufferedImageToGray(BufferedImage bi)
public static BufferedImage spatialBlurLinear(BufferedImage bi, Point start, Point end, double sigma)
public static int lerpColorValue(int x0, int x1, double frac)
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.