public class ImageDecoder
extends java.lang.Object
| Constructor and Description |
|---|
ImageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(java.awt.Image image,
int len)
Decodes a hash byte array from the given image.
|
static void |
encode(java.awt.Image image,
byte[] hash,
java.io.File output)
Encodes a hash byte array into the given image and write it back to the given output.
|
static void |
main(java.lang.String[] args)
The main testing routine.
|
public static void encode(java.awt.Image image,
byte[] hash,
java.io.File output)
throws java.lang.Exception
image - the image to used for encoding.hash - the byte array to be encoded.output - the output gif image file.java.lang.Exceptionpublic static byte[] decode(java.awt.Image image,
int len)
throws java.lang.Exception
image - the image to used for encoding.java.lang.Exceptionpublic static void main(java.lang.String[] args)
args -