com.mebigfatguy.pixelle.eval
Class PixelleEvalByteGray

java.lang.Object
  extended by com.mebigfatguy.pixelle.PixelleEval
      extended by com.mebigfatguy.pixelle.eval.PixelleEvalByteGray

public class PixelleEvalByteGray
extends PixelleEval


Field Summary
 
Fields inherited from class com.mebigfatguy.pixelle.PixelleEval
buffer, coobOption, height, ioobOption, srcImage, width
 
Constructor Summary
PixelleEvalByteGray(PixelleImage srcImage, IndexOutOfBoundsOption iOption, ColorOutOfBoundsOption cOption)
           
 
Method Summary
 double getBlueValue(int x, int y)
          template method to get the blue value at a specific x and y
 double getGreenValue(int x, int y)
          template method to get the green value at a specific x and y
 double getRedValue(int x, int y)
          template method to get the red value at a specific x and y
 double getTransparencyValue(int x, int y)
          template method to get the transparency value at a specific x and y
 void setValue(int x, int y, char pixelSpec, double value)
          sets the pixel value at the specified x, y
 
Methods inherited from class com.mebigfatguy.pixelle.PixelleEval
adjustColor, getHeight, getValue, getWidth, setSelectionValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixelleEvalByteGray

public PixelleEvalByteGray(PixelleImage srcImage,
                           IndexOutOfBoundsOption iOption,
                           ColorOutOfBoundsOption cOption)
Method Detail

getRedValue

public double getRedValue(int x,
                          int y)
Description copied from class: PixelleEval
template method to get the red value at a specific x and y

Specified by:
getRedValue in class PixelleEval
Parameters:
x - the x coordinate
y - the y coordinate
Returns:
the pixel red value at the given coordinate

getGreenValue

public double getGreenValue(int x,
                            int y)
Description copied from class: PixelleEval
template method to get the green value at a specific x and y

Specified by:
getGreenValue in class PixelleEval
Parameters:
x - the x coordinate
y - the y coordinate
Returns:
the pixel green value at the given coordinate

getBlueValue

public double getBlueValue(int x,
                           int y)
Description copied from class: PixelleEval
template method to get the blue value at a specific x and y

Specified by:
getBlueValue in class PixelleEval
Parameters:
x - the x coordinate
y - the y coordinate
Returns:
the pixel blue value at the given coordinate

getTransparencyValue

public double getTransparencyValue(int x,
                                   int y)
Description copied from class: PixelleEval
template method to get the transparency value at a specific x and y

Specified by:
getTransparencyValue in class PixelleEval
Parameters:
x - the x coordinate
y - the y coordinate
Returns:
the pixel transparency value at the given coordinate

setValue

public void setValue(int x,
                     int y,
                     char pixelSpec,
                     double value)
Description copied from class: PixelleEval
sets the pixel value at the specified x, y

Overrides:
setValue in class PixelleEval
Parameters:
x - the x coordinate
y - the y coordinate
pixelSpec - the component to set
value - the value to set


Copyright © 2008 MeBigFatGuy.com. All Rights Reserved.