Package com.github.weisj.darklaf.util
Class ImageUtil
- java.lang.Object
-
- com.github.weisj.darklaf.util.ImageUtil
-
public final class ImageUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedImagecreateCompatibleImage(int width, int height)static BufferedImagecreateCompatibleTranslucentImage(int width, int height)static BufferedImagecreateCompatibleTransparentImage(int width, int height)static BufferedImageimageFromComponent(Component c, Rectangle bounds)Create image from component.static BufferedImageimageFromComponent(Component c, Rectangle bounds, boolean print)Create image from component.static BufferedImagescaledImageFromComponent(Component c, Rectangle bounds)Create image from component.static BufferedImagescaledImageFromComponent(Component c, Rectangle bounds, double scalex, double scaley, boolean print)Create image from component.
-
-
-
Method Detail
-
imageFromComponent
public static BufferedImage imageFromComponent(Component c, Rectangle bounds)
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
imageFromComponent
public static BufferedImage imageFromComponent(Component c, Rectangle bounds, boolean print)
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
scaledImageFromComponent
public static BufferedImage scaledImageFromComponent(Component c, Rectangle bounds)
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
scaledImageFromComponent
public static BufferedImage scaledImageFromComponent(Component c, Rectangle bounds, double scalex, double scaley, boolean print)
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.scalex- the x scalescaley- the y scale- Returns:
- image containing the captured area.
-
createCompatibleImage
public static BufferedImage createCompatibleImage(int width, int height)
-
createCompatibleTransparentImage
public static BufferedImage createCompatibleTransparentImage(int width, int height)
-
createCompatibleTranslucentImage
public static BufferedImage createCompatibleTranslucentImage(int width, int height)
-
-