Package com.github.weisj.darklaf.util
Class ImageUtil
java.lang.Object
com.github.weisj.darklaf.util.ImageUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagecreateCompatibleImage(int width, int height)static BufferedImagecreateCompatibleImage(GraphicsConfiguration gc, int width, int height)static BufferedImagecreateCompatibleTranslucentImage(int width, int height)static BufferedImagecreateCompatibleTranslucentImage(GraphicsConfiguration gc, int width, int height)static BufferedImagecreateCompatibleTransparentImage(int width, int height)static BufferedImagecreateCompatibleTransparentImage(GraphicsConfiguration gc, int width, int height)static ScaledImageCreate image from component.static ScaledImageimageFromComponent(Component c, Rectangle bounds)Create image from component.static ScaledImageimageFromComponent(Component c, Rectangle bounds, boolean print)Create image from component.static ScaledImageCreate image from component.static ScaledImagescaledImageFromComponent(Component c, Rectangle bounds)Create image from component.static ScaledImagescaledImageFromComponent(Component c, Rectangle bounds, boolean print)Create image from component.static ScaledImagescaledImageFromComponent(Component c, Rectangle bounds, double scalex, double scaley, boolean print)Create image from component.
-
Method Details
-
imageFromComponent
Create image from component.- Parameters:
c- the component.- Returns:
- image of the component.
-
imageFromComponent
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
imageFromComponent
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
scaledImageFromComponent
Create image from component.- Parameters:
c- the component.- Returns:
- image of the component.
-
scaledImageFromComponent
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.- Returns:
- image containing the captured area.
-
scaledImageFromComponent
Create image from component.- Parameters:
c- the component.bounds- the bounds inside the component to capture.print- whether the component should be painted in printing mode or not.- Returns:
- image containing the captured area.
-
scaledImageFromComponent
public static ScaledImage 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
-
createCompatibleImage
-
createCompatibleTransparentImage
public static BufferedImage createCompatibleTransparentImage(GraphicsConfiguration gc, int width, int height) -
createCompatibleTransparentImage
-
createCompatibleTranslucentImage
public static BufferedImage createCompatibleTranslucentImage(GraphicsConfiguration gc, int width, int height) -
createCompatibleTranslucentImage
-