nl.captcha.backgrounds
Class TransparentBackgroundProducer

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

public class TransparentBackgroundProducer
extends java.lang.Object
implements BackgroundProducer

Generates a transparent background.

Author:
James Childers

Constructor Summary
TransparentBackgroundProducer()
           
 
Method Summary
 java.awt.image.BufferedImage addBackground(java.awt.image.BufferedImage image)
          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

TransparentBackgroundProducer

public TransparentBackgroundProducer()
Method Detail

addBackground

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

Specified by:
addBackground in interface BackgroundProducer
Parameters:
image - 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.