home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / awt / image / ImagingLib.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.2 KB  |  37 lines

  1. /*
  2.  * @(#)ImagingLib.java    1.6 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.awt.image;
  16.  
  17. /**
  18.  * This interface is used to provide a hook to access platform-specific
  19.  * imaging code.  If a class exists that implements this interface,
  20.  * the appropriate filter method will be calling from the RasterOp or
  21.  * BufferedImageOp class. 
  22.  *
  23.  * If the implementing class cannot handle the op, raster format or
  24.  * image format, the method will return null;
  25.  * If there is an error when processing the
  26.  * data, the implementing class may either return null
  27.  * (in which case our java code will be executed) or may throw
  28.  * an exception.
  29.  */
  30. public interface ImagingLib {
  31.  
  32.     WritableRaster filter(RasterOp op, Raster src, WritableRaster dst);
  33.     
  34.     BufferedImage filter(BufferedImageOp op, BufferedImage src,
  35.                          BufferedImage dst);
  36. }
  37.