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

Interface java.awt.image.RasterImageConsumer

Implementing Classes:
BufferedImageFilter

public interface RasterImageConsumer
extends ImageConsumer
The interface for objects expressing interest in image data through the ImageProducer interfaces. When a consumer is added to an image producer, the producer delivers all of the data about the image using the method calls defined in this interface.

See Also:
ImageProducer

Method Summary
void  setPixels(int x, int y, ColorModel model, WritableRaster raster)
The pixels of the image are delivered using one or more calls to the setPixels method.
 

Method Detail

setPixels

public void setPixels(int x,
                      int y,
                      ColorModel model,
                      WritableRaster raster)
The pixels of the image are delivered using one or more calls to the setPixels method. x and y specify the location and Raster.getWidth() and Raster.getHeight() specify the size of the rectangle of source pixels that are contained in the Raster. The specified ColorModel object should be used to convert the pixels into their corresponding color and alpha components. Pixels in the Raster can be accessed by using the getPixelData method:
      int[] pixel = (int[])Raster.getPixelData(tx, ty, null);
 
The variable pixel will contain one channel element for the specified location from each channel in the Raster.
Implements:
setPixels in interface ImageConsumer
See Also:
ColorModel, Raster

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.