project.android.imageprocessing.filter.colour
Class RGBFilter

java.lang.Object
  extended by project.android.imageprocessing.GLRenderer
      extended by project.android.imageprocessing.input.GLTextureOutputRenderer
          extended by project.android.imageprocessing.filter.BasicFilter
              extended by project.android.imageprocessing.filter.colour.ColourMatrixFilter
                  extended by project.android.imageprocessing.filter.colour.RGBFilter
All Implemented Interfaces:
GLTextureInputRenderer
Direct Known Subclasses:
ExposureFilter

public class RGBFilter
extends ColourMatrixFilter

A red, green and blue alteration filter extension of the BasicFilter. This class allows the alteration of each pixel by multiplying each of red, green and blue by constant floats.

Author:
Chris Batt

Field Summary
 
Fields inherited from class project.android.imageprocessing.GLRenderer
ATTRIBUTE_POSITION, ATTRIBUTE_TEXCOORD, UNIFORM_TEXTURE0, VARYING_TEXCOORD
 
Constructor Summary
RGBFilter(float red, float green, float blue)
          Creates a RGBFilter which sets each pixel in the given image to a new color specified by the multiplication constants for each of red, green and blue.
 
Method Summary
 
Methods inherited from class project.android.imageprocessing.filter.BasicFilter
newTextureReady
 
Methods inherited from class project.android.imageprocessing.input.GLTextureOutputRenderer
addTarget, destroy, getLockObject, getTargets, removeTarget
 
Methods inherited from class project.android.imageprocessing.GLRenderer
getBackgroundAlpha, getBackgroundBlue, getBackgroundGreen, getBackgroundRed, getHeight, getWidth, onDrawFrame, reInitialize, rotateClockwise90Degrees, rotateCounterClockwise90Degrees, setBackgroundAlpha, setBackgroundBlue, setBackgroundColour, setBackgroundGreen, setBackgroundRed, setRenderSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGBFilter

public RGBFilter(float red,
                 float green,
                 float blue)
Creates a RGBFilter which sets each pixel in the given image to a new color specified by the multiplication constants for each of red, green and blue.

Parameters:
red - The constant float value to multiply all red values by.
green - The constant float value to multiply all green values by.
blue - The constant float value to multiply all blue values by.