| java.lang.Object java.awt.image.FilteredImageSource
FilteredImageSource | public class FilteredImageSource implements ImageProducer(Code) | | This class is an implementation of the ImageProducer interface which
takes an existing image and a filter object and uses them to produce
image data for a new filtered version of the original image.
Here is an example which filters an image by swapping the red and
blue compents:
Image src = getImage("doc:///demo/images/duke/T1.gif");
ImageFilter colorfilter = new RedBlueSwapFilter();
Image img = createImage(new FilteredImageSource(src.getSource(),
colorfilter));
See Also: ImageProducer version: 1.22 08/19/02 author: Jim Graham |
Method Summary | |
public synchronized void | addConsumer(ImageConsumer ic) Adds an ImageConsumer to the list of consumers interested in
data for this image. | public synchronized boolean | isConsumer(ImageConsumer ic) Determines whether an ImageConsumer is on the list of consumers
currently interested in data for this image. | public synchronized void | removeConsumer(ImageConsumer ic) Removes an ImageConsumer from the list of consumers interested in
data for this image. | public void | requestTopDownLeftRightResend(ImageConsumer ic) Requests that a given ImageConsumer have the image data delivered
one more time in top-down, left-right order. | public void | startProduction(ImageConsumer ic) Adds an ImageConsumer to the list of consumers interested in
data for this image, and immediately starts delivery of the
image data through the ImageConsumer interface. |
addConsumer | public synchronized void addConsumer(ImageConsumer ic)(Code) | | Adds an ImageConsumer to the list of consumers interested in
data for this image.
See Also: ImageConsumer |
isConsumer | public synchronized boolean isConsumer(ImageConsumer ic)(Code) | | Determines whether an ImageConsumer is on the list of consumers
currently interested in data for this image.
true if the ImageConsumer is on the list; false otherwise See Also: ImageConsumer |
removeConsumer | public synchronized void removeConsumer(ImageConsumer ic)(Code) | | Removes an ImageConsumer from the list of consumers interested in
data for this image.
See Also: ImageConsumer |
requestTopDownLeftRightResend | public void requestTopDownLeftRightResend(ImageConsumer ic)(Code) | | Requests that a given ImageConsumer have the image data delivered
one more time in top-down, left-right order. The request is
handed to the ImageFilter for further processing, since the
ability to preserve the pixel ordering depends on the filter.
See Also: ImageConsumer |
startProduction | public void startProduction(ImageConsumer ic)(Code) | | Adds an ImageConsumer to the list of consumers interested in
data for this image, and immediately starts delivery of the
image data through the ImageConsumer interface.
See Also: ImageConsumer |
|
|