org.shapelogic.imageprocessing
Class ColorReplacePixelHandler
java.lang.Object
   org.shapelogic.imageprocessing.ColorReplacePixelHandler
org.shapelogic.imageprocessing.ColorReplacePixelHandler
- All Implemented Interfaces: 
- HasSLImage, PixelHandler
- public class ColorReplacePixelHandler 
- extends java.lang.Object- implements PixelHandler, HasSLImage
Handles Color Replace for individual pixel, used with wrapper to work on whole image.
 
 Example of a PixelHandler that can be used to change a whole image.
- Author:
- Sami Badawi
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
maxDistance
public static double maxDistance
referenceColor
public static int referenceColor
_colorDistance
protected IColorDistance _colorDistance
_image
protected SLImage _image
ColorReplacePixelHandler
public ColorReplacePixelHandler()
setup
public void setup()
- 
 
- 
 
putPixel
public void putPixel(int x,
                     int y,
                     int color)
- Description copied from interface: PixelHandler
- Handle a pixel with a color and a coordinate.
 
- 
- Specified by:
- putPixelin interface- PixelHandler
 
- 
 
getColorDistance
public IColorDistance getColorDistance()
- 
 
- 
 
setColorDistance
public void setColorDistance(IColorDistance _colorDistance)
- 
 
- 
 
setImage
public void setImage(SLImage image)
- Description copied from interface: HasSLImage
- Should only be implemented if the PixelHandler needs to know what image
 it is using.
 
- 
- Specified by:
- setImagein interface- HasSLImage
 
- 
 
Copyright © 2009. All Rights Reserved.