All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.JPM.Filters.Margin

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

public class Margin
extends ImageFilterPlus
An ImageFilter that adds a margin to an image.

Adds a margin of a specified color and width around an image. The output uses the same color model as the input. This filter is very fast.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Margin(ImageProducer, Color, int)
Constructor.

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 Margin
 public Margin(ImageProducer producer,
               Color color,
               int size)
Constructor.

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