Package nl.captcha.text.renderer
Class DefaultWordRenderer
java.lang.Object
nl.captcha.text.renderer.DefaultWordRenderer
- All Implemented Interfaces:
WordRenderer
Render a word using the given color and from a randomly selected font chosen from
a list of fonts given in the constructor.
-
Constructor Summary
ConstructorsConstructorDescriptionWill render the characters in black and in either 40pt Arial or Courier.DefaultWordRenderer(Color color, List<Font> fonts) -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(String word, BufferedImage image) Render a word onto a BufferedImage.
-
Constructor Details
-
DefaultWordRenderer
public DefaultWordRenderer()Will render the characters in black and in either 40pt Arial or Courier. -
DefaultWordRenderer
-
-
Method Details
-
render
Render a word onto a BufferedImage.- Specified by:
renderin interfaceWordRenderer- Parameters:
word- The word to be rendered.image- The BufferedImage onto which the word will be painted on to
-