public class ImageSupport extends Object
ImageSupportclass provides methods, which are implemented differently for Java 1.3 and for Java 1.4. These methods are implemented as public static methods, which delegate to protected instance methods of implementations of this abstract class.
|Modifier and Type||Method and Description|
Forces the data to match the state specified in the
Deregisters the GIF Image writer to be used depending on the Java runtime from the ImageIO registry.
Registers the GIF Image writer to be used depending on the Java runtime to the ImageIO registry.
public static BufferedImage coerceData(BufferedImage image, boolean isAlphaPremultiplied)
isAlphaPremultipliedvariable. It may multiply or divide the color raster data by alpha, or do nothing if the data is in the correct state.
NOTE: Due to a bug in the
implementation of Java 1.3 we have to hack this in using the
implementation of Java 1.4 for the 1.3 version and delegating to the
library implementation for the 1.4 version.
image- The image to apply the alpha channel for.
trueif the alpha has been premultiplied;
image. Callers should not assume to get a different image or even different raster data object.
public static void registerImageIOSpi()
public static void deregisterImageIOSpi()
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"