Class java.awt.image.BilinearAffineTransformOp
java.lang.Object
|
+----java.awt.image.AffineTransformOp
|
+----java.awt.image.BilinearAffineTransformOp
- public class BilinearAffineTransformOp
- extends AffineTransformOp
This class uses an affine transformation with bilinear interpolation
to transform an image or Raster.
Note that the following constraints have to be met:
Source and Destination must be different.
For Rasters, the number of Channels in the Source must be equal
to the number of Channels in the Destination.
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BilinearAffineTransformOp
public BilinearAffineTransformOp(AffineTransform xform)
- Constructs a BilinearAffineTransformOp given an affine
transform.
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
- Transforms the BufferedImage using the stored affine transform.
If the color models for the two images do not match, a color
conversion into the destination color model will be performed.
If the destination image is null,
a BufferedImage will be created with the source ColorModel.
The IllegalArgumentException may be thrown if the source is
the same as the destination.
- Overrides:
- filter in class AffineTransformOp
filter
public WritableRaster filter(Raster src,
WritableRaster dst)
- Transforms the Raster using the stored affine transform.
This operation will perform the transform channel by channel.
If the destination Raster is null, a new Raster will be created.
The IllegalArgumentException may be thrown if the source is
the same as the destination or if the number of channels in
the source is not equal to the number of channels in the
destination.
- Overrides:
- filter in class AffineTransformOp
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.