anon.util.captcha
Class BinaryImageExtractor

java.lang.Object
  extended by anon.util.captcha.BinaryImageExtractor

public class BinaryImageExtractor
extends java.lang.Object

This is a helper class for extracting binary images.


Constructor Summary
BinaryImageExtractor()
           
 
Method Summary
static java.awt.Image binaryToImage(byte[] a_binaryData)
          Transfroms the data of our own binary image format back to a Image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryImageExtractor

public BinaryImageExtractor()
Method Detail

binaryToImage

public static java.awt.Image binaryToImage(byte[] a_binaryData)
Transfroms the data of our own binary image format back to a Image. The returned Image uses the default color model. The black pixels are shown in a more eye-friendly dark gray.

Parameters:
a_binaryData - A image in our own binary image format.
Returns:
A Image of the input data or null, if the input data are not in the binary image format.