Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.image
Class BrighterFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by java.awt.image.RGBImageFilter
          extended by org.bounce.image.BaseFilter
              extended by org.bounce.image.BrighterFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.lang.Cloneable

public class BrighterFilter
extends BaseFilter

A filter to create an X% brighter image.

Version:
$Revision: 1.4 $, $Date: 2008/01/28 21:28:37 $
Author:
Edwin Dankert

Field Summary
 
Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
BrighterFilter(int p)
          Constructs a Filter that can be used to construct a brighter image.
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          Overrides RGBImageFilter.filterRGB.
 
Methods inherited from class org.bounce.image.BaseFilter
getBlue, getGreen, getNTSCValue, getRed, getRGB
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrighterFilter

public BrighterFilter(int p)
Constructs a Filter that can be used to construct a brighter image.

Parameters:
p - the percentage of brightness in the range 0..100, where 0 is the darkest, and 100 is the lightest.
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides RGBImageFilter.filterRGB.

Specified by:
filterRGB in class java.awt.image.RGBImageFilter
Parameters:
x - the horizontal position of the pixel.
y - the vertical position of the pixel.
rgb - the color of the pixel.
Returns:
the new rgb value.

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.