Java 11 includes an API that supports multiresolution images. Specifically, it allows a multiresolution image to encapsulate several resolution variants of the same image. This API is located in the java.awt.image package. The following diagram shows how multiresolution can encapsulate a set of images, with different resolutions, into a single image:
![](https://static.packt-cdn.com/products/9781789137613/graphics/assets/95510b0a-ae51-4b9a-95e4-ef3ab542753a.png)
Multiimage resolution encapsulation
This new API will give developers the ability to retrieve all image variants or to retrieve a resolution-specific image. This is a powerful set of capabilities. The java.awt.Graphics class is used to retrieve the desired variant from the multiresolution image.
Here is a quick look at the API:
package java.awt.image;
public interface MultiResolutionImage {
Image getResolutionVariant(float destinationImageWidth,
float destinationImageHeight);
public List <Image>...