All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.JPM.Filters.ScaleCopy

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----Acme.JPM.Filters.ImageFilterPlus
                   |
                   +----Acme.JPM.Filters.ScaleCopy

public class ScaleCopy
extends ImageFilterPlus
An ImageFilter that scales by pixel copying.

Scales an image by copying pixels. If the image is being enlarged, pixels get replicated; if the image is being shrunk, pixels get dropped. The output uses the same color model as the input. For enlarging, this filter is slightly slower than Enlarge due to the floating-point arithmetic; for shrinking, it's much faster than Shrink, but the results aren't as nice.

Fetch the software.
Fetch the entire Acme package.

See Also:
Enlarge, Shrink

Constructor Index

 o ScaleCopy(ImageProducer, double)
Constructor, same X and Y scale factor.
 o ScaleCopy(ImageProducer, double, double)
Constructor, different X and Y scale factors.

Method Index

 o main(String[])
 o setDimensions(int, int)
 o setPixels(int, int, int, int, ColorModel, byte[], int, int)
 o setPixels(int, int, int, int, ColorModel, int[], int, int)

Constructors

 o ScaleCopy
 public ScaleCopy(ImageProducer producer,
                  double scale)
Constructor, same X and Y scale factor.

 o ScaleCopy
 public ScaleCopy(ImageProducer producer,
                  double xScale,
                  double yScale)
Constructor, different X and Y scale factors.

Methods

 o setDimensions
 public void setDimensions(int width,
                           int height)
Overrides:
setDimensions in class ImageFilter
 o setPixels
 public void setPixels(int x,
                       int y,
                       int w,
                       int h,
                       ColorModel model,
                       byte pixels[],
                       int off,
                       int scansize)
Overrides:
setPixels in class ImageFilter
 o setPixels
 public void setPixels(int x,
                       int y,
                       int w,
                       int h,
                       ColorModel model,
                       int pixels[],
                       int off,
                       int scansize)
Overrides:
setPixels in class ImageFilter
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs