Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

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.


    Constructor Summary
     BilinearAffineTransformOp(AffineTransform xform)
    Constructs a BilinearAffineTransformOp given an affine transform.
     

    Method Summary
    BufferedImage  filter(BufferedImage src, BufferedImage dst)
    Transforms the BufferedImage using the stored affine transform.
    WritableRaster  filter(Raster src, WritableRaster dst)
    Transforms the Raster using the stored affine transform.
     
    Methods inherited from class java.awt.image.AffineTransformOp
     createCompatibleDestImage, createCompatibleDestRaster, filter, filter, getDestBounds, getDestBounds, getDestPoint, getTransform
     
    Methods inherited from class java.lang.Object
     clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    BilinearAffineTransformOp

    public BilinearAffineTransformOp(AffineTransform xform)
    Constructs a BilinearAffineTransformOp given an affine transform.
    Method Detail

    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

    Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
    PREV | NEXT SHOW LISTS | HIDE LISTS

    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.