nl.captcha.backgrounds
Class FlatColorBackgroundProducer

java.lang.Object
  extended by nl.captcha.backgrounds.FlatColorBackgroundProducer
All Implemented Interfaces:
BackgroundProducer

public final class FlatColorBackgroundProducer
extends java.lang.Object
implements BackgroundProducer


Constructor Summary
FlatColorBackgroundProducer()
           
FlatColorBackgroundProducer(java.awt.Color color)
           
 
Method Summary
 java.awt.image.BufferedImage addBackground(java.awt.image.BufferedImage bi)
          Add the background to the given image.
 java.awt.image.BufferedImage getBackground(int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatColorBackgroundProducer

public FlatColorBackgroundProducer()

FlatColorBackgroundProducer

public FlatColorBackgroundProducer(java.awt.Color color)
Method Detail

addBackground

public java.awt.image.BufferedImage addBackground(java.awt.image.BufferedImage bi)
Description copied from interface: BackgroundProducer
Add the background to the given image.

Specified by:
addBackground in interface BackgroundProducer
Parameters:
bi - The image onto which the background will be rendered.
Returns:
The image with the background rendered.

getBackground

public java.awt.image.BufferedImage getBackground(int width,
                                                  int height)
Specified by:
getBackground in interface BackgroundProducer


Copyright © 2010-2011 James Childers. All Rights Reserved.