public final class MultiResolutionImageProvider
extends java.lang.Object
java.awt.image.MultiResolutionImage
available since JDK 9.Modifier and Type | Class and Description |
---|---|
static class |
MultiResolutionImageProvider.Accessor
An accessor to the
MultiResolutionImage 's resolution variants methods. |
Constructor and Description |
---|
MultiResolutionImageProvider() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
convertFromJBImage(java.awt.Image jbImage)
Converts the provided
JBHiDPIScaledImage to MultiResolutionImage . |
static MultiResolutionImageProvider.Accessor |
getAccessor(java.awt.Image mrImage)
Returns an accessor to the provided
MultiResolutionImage . |
static boolean |
isMultiResolutionImage(java.awt.Image image)
Checks whether the image is an instance of MultiResolutionImage.
|
static boolean |
isMultiResolutionImageAvailable()
Checks whether
MultiResolutionImage is available in this runtime. |
public static boolean isMultiResolutionImage(java.awt.Image image)
public static boolean isMultiResolutionImageAvailable()
MultiResolutionImage
is available in this runtime.public static java.awt.Image convertFromJBImage(java.awt.Image jbImage)
JBHiDPIScaledImage
to MultiResolutionImage
.
If the provided image is not JBHiDPIScaledImage
the returned MultiResolutionImage
will
default to the provided image's single resolution variant.public static MultiResolutionImageProvider.Accessor getAccessor(java.awt.Image mrImage)
MultiResolutionImage
.
If the provided image is not MultiResolutionImage
the resolution variants methods will default to the provided image.