public class ImageSupport
extends java.lang.Object
ImageSupport
class 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 |
---|---|
static java.awt.image.BufferedImage |
coerceData(java.awt.image.BufferedImage image,
boolean isAlphaPremultiplied)
Forces the data to match the state specified in the
isAlphaPremultiplied variable. |
static void |
deregisterImageIOSpi()
Deregisters the GIF Image writer to be used depending on the Java
runtime from the ImageIO registry.
|
static void |
registerImageIOSpi()
Registers the GIF Image writer to be used depending on the Java
runtime to the ImageIO registry.
|
public static java.awt.image.BufferedImage coerceData(java.awt.image.BufferedImage image, boolean isAlphaPremultiplied)
isAlphaPremultiplied
variable. 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 DirectColorModel.coerceData
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.isAlphaPremultiplied
- true
if the alpha has been
premultiplied; false
otherwise.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 - 2020 Adobe. All Rights Reserved