Package org.jdesktop.swingx.image
Class RadianceCC
java.lang.Object
org.jdesktop.swingx.image.RadianceCC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddrawImageWithScale(Graphics g, double scaleFactor, Image img, int x, int y) static voiddrawImageWithScale(Graphics g, double scaleFactor, Image img, int x, int y, int width, int height, int offsetX, int offsetY) static BufferedImagegetBlankScaledImage(double scale, int width, int height) Gets a scaled, high-DPI aware image of specified dimensions.static doublegetScaleFactor(Component component)
-
Constructor Details
-
RadianceCC
public RadianceCC()
-
-
Method Details
-
getBlankScaledImage
Gets a scaled, high-DPI aware image of specified dimensions.Use
drawImageWithScale(Graphics, double, Image, int, int)ordrawImageWithScale(Graphics, double, Image, int, int, int, int, int, int)to draw the image obtained with this method. Note that applying an extension ofRadianceAbstractFilteris a "safe" operation as far as preserving the scale-aware configuration. If you are using a customBufferedImageOpthat is not aRadianceAbstractFilter, the resulting image will be a regularBufferedImagethat will not be drawn correctly using one of thedrawImageWithScalemethods above. In such a case, usegetScaleFactor(Component)to divide the image width and height for the purposes of drawing.- Parameters:
width- Width of the target imageheight- Width of the target image- Returns:
- A scaled, high-DPI aware image of specified dimensions.
-
drawImageWithScale
-
drawImageWithScale
-
getScaleFactor
-