com.darwinsys.graphics
Class JigglyTextImageWriter
java.lang.Object
com.darwinsys.graphics.JigglyTextImageWriter
public class JigglyTextImageWriter
- extends java.lang.Object
Write a ransom-note-style string to an OutputStream as
an Image file (jpeg for now). Designed for use in
e.g., a servlet for verifying that a user is a person
and not a spambot.
But, deliberately, does not know about the Servlet API.
Method Summary |
void |
write(java.lang.String msg,
java.io.OutputStream os)
generate the image and output it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JigglyTextImageWriter
public JigglyTextImageWriter(java.awt.Font font,
int width,
int height)
write
public void write(java.lang.String msg,
java.io.OutputStream os)
throws java.io.IOException
- generate the image and output it.
- Throws:
java.io.IOException
Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.