Java Code Examples for sun.awt.image.MultiResolutionCachedImage#map()
The following examples show how to use
sun.awt.image.MultiResolutionCachedImage#map() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GrayFilter.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Creates a disabled image * * @param i an {@code Image} to be created as disabled * @return the new grayscale image created from {@code i} */ public static Image createDisabledImage(Image i) { if (i instanceof MultiResolutionImage) { return MultiResolutionCachedImage .map((MultiResolutionImage) i, (img) -> createDisabledImageImpl(img)); } return createDisabledImageImpl(i); }
Example 2
Source File: GrayFilter.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a disabled image * * @param i an {@code Image} to be created as disabled * @return the new grayscale image created from {@code i} */ public static Image createDisabledImage(Image i) { if (i instanceof MultiResolutionImage) { return MultiResolutionCachedImage .map((MultiResolutionImage) i, (img) -> createDisabledImageImpl(img)); } return createDisabledImageImpl(i); }
Example 3
Source File: AquaUtils.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static Image map(Image image, ImageFilter filter) { if (image instanceof MultiResolutionImage) { return MultiResolutionCachedImage .map((MultiResolutionImage) image, (img) -> generateFilteredImage(img, filter)); } return generateFilteredImage(image, filter); }