public interface MultiResolutionImage
Imageto allow them to provide alternate images for various rendering resolutions. The various
Graphics.drawImage(...)variant methods will consult the methods of this interface if it is implemented on the argument
Imageobject in order to choose the best representation to use for each rendering operation.
MultiResolutionImage interface should be implemented by any
java.awt.Image whose instances are intended to provide
image resolution variants according to the given image width and height.
For convenience, toolkit images obtained from
Toolkit.getImage(String name) and
will implement this interface on platforms that support naming conventions
for resolution variants of stored image media and the
classes are provided to facilitate easy construction of custom multi-resolution
images from a list of related images.
Image getResolutionVariant(double destImageWidth, double destImageHeight)Gets a specific image that is the best variant to represent this logical image at the indicated size.
destImageWidth- the width of the destination image, in pixels.
destImageHeight- the height of the destination image, in pixels.
- image resolution variant.
destImageHeightis less than or equal to zero, infinity, or NaN.
Gets a readable list of all resolution variants. The list must be nonempty and contain at least one resolution variant.
Note that many implementations might return an unmodifiable list.
- list of resolution variants.