java.lang.Object
io.github.stanio.xbrz.awt.XbrzImage
xBRZ scaled icons.
new ImageIcon(...) → XbrzImage.apply(new ImageIcon(...))
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIconSets up the given icon with aMultiResolutionImagederiving resolution variants by applying xBRZ to the icon's current image.static <M extends Image & MultiResolutionImage>
MCreates aMultiResolutionImagederiving resolution variants by applying xBRZ to the given image.
-
Method Details
-
apply
Sets up the given icon with aMultiResolutionImagederiving resolution variants by applying xBRZ to the icon's current image. Replaces the given icon's image with a multi-resolution one that uses the current icon's image to produce resolution variants as requested.- Parameters:
icon- image icon to set up- Returns:
- The given
ImageIconwith image updated to aMultiResolutionImagederiving resolution variants by applying xBRZ to the icon's current image
-
mrImage
Creates aMultiResolutionImagederiving resolution variants by applying xBRZ to the given image.- Type Parameters:
M- anImagesubclass that implementsMultiResolutionImage- Parameters:
image- base image to derive resolution variants from- Returns:
- A
MultiResolutionImagedynamically producing xBRZ variants - See Also:
-