public static Image getResolutionVariant( Image image, int destImageWidth, int destImageHeight ) {
		return (image instanceof MultiResolutionImage)
			? ((MultiResolutionImage)image).getResolutionVariant( destImageWidth, destImageHeight )
			: image;
	}
Support for multi-resolution images available since Java 9.

@author Karl Tauber
flatlaf-core/src/main/java9/com/formdev/flatlaf/util/MultiResolutionImageSupport.java