API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.image. RescaleOp View Source
Author(s)
Since
Version
10 Feb 1997
Serial
Hierarchy
 Object
      RescaleOp
Implements
 BufferedImageOp
 RasterOp
Subclasses
Description
public class RescaleOp
  This class performs a pixel-by-pixel rescaling of the data in the source image by multiplying the sample values for each pixel by a scale factor and then adding an offset.
Constructors
public RescaleOp (float[] scaleFactors, float[] offsets, RenderingHints hints)
  Constructs a new RescaleOp with the desired scale factors and offsets.
public RescaleOp (float scaleFactor, float offset, RenderingHints hints)
  Constructs a new RescaleOp with the desired scale factor and offset.
Methods
Hide/Show inherited methods
public BufferedImage createCompatibleDestImage (BufferedImage src, ColorModel destCM) [Specified in BufferedImageOp]
  Creates a zeroed destination image with the correct size and number of bands.
public WritableRaster createCompatibleDestRaster (Raster src) [Specified in RasterOp]
  Creates a zeroed-destination Raster with the correct size and number of bands, given this source.
publicfinal BufferedImage filter (BufferedImage src, BufferedImage dst) [Specified in BufferedImageOp]
  Rescales the source BufferedImage.
publicfinal WritableRaster filter (Raster src, WritableRaster dst) [Specified in RasterOp]
  Rescales the pixel data in the source Raster.
publicfinal Rectangle2D getBounds2D (BufferedImage src) [Specified in BufferedImageOp]
  Returns the bounding box of the rescaled destination image.
publicfinal Rectangle2D getBounds2D (Raster src) [Specified in RasterOp]
  Returns the bounding box of the rescaled destination Raster.
publicfinal int getNumFactors ()
  Returns the number of scaling factors and offsets used in this RescaleOp.
publicfinal float getOffsets (float[] offsets)
  Returns the offsets in the given array.
publicfinal Point2D getPoint2D (Point2D srcPt, Point2D dstPt) [Specified in BufferedImageOp]
  Returns the location of the destination point given a point in the source.
publicfinal RenderingHints getRenderingHints () [Specified in BufferedImageOp]
  Returns the rendering hints for this op.
publicfinal float getScaleFactors (float[] scaleFactors)
  Returns the scale factors in the given array.
Fields
Hide/Show inherited fields
pack-private RenderingHints hints
pack-private int length
pack-private float offsets
pack-private float scaleFactors
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar