Class ImagePainter
java.lang.Object
com.github.weisj.darklaf.util.graphics.ImagePainter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawImage(Graphics g, Image image, int x, int y, ImageObserver observer)A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, ImageObserver).static voiddrawImage(Graphics g, Image image, Rectangle dstBounds, ImageObserver observer)A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, int, int, ImageObserver).static voiddrawImage(Graphics g, Image image, Rectangle dstBounds, Rectangle srcBounds, BufferedImageOp op, ImageObserver observer)A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver).static voiddrawImage(Graphics g, Image image, Rectangle dstBounds, Rectangle srcBounds, ImageObserver observer)
-
Constructor Details
-
ImagePainter
public ImagePainter()
-
-
Method Details
-
drawImage
A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, ImageObserver). -
drawImage
A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, int, int, ImageObserver). -
drawImage
public static void drawImage(Graphics g, Image image, Rectangle dstBounds, Rectangle srcBounds, ImageObserver observer) -
drawImage
public static void drawImage(Graphics g, Image image, Rectangle dstBounds, Rectangle srcBounds, BufferedImageOp op, ImageObserver observer)A hidpi-aware wrapper overGraphics.drawImage(Image, int, int, int, int, int, int, int, int, ImageObserver).The
dstBoundsandsrcBoundsare in the user space (just like the width/height of the image). IfdstBoundsis null or if its width/height is set to (-1) the image bounds or the image width/height is used. IfsrcBoundsis null or if its width/height is set to (-1) the image bounds or the image right/bottom area to the provided x/y is used.
-