API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.captcha. JOTCaptchaImage View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTAbstractImage
          JOTCaptchaImage
Implements
Subclasses
Description
public class JOTCaptchaImage
  Implements a 'CAPTCHA' image.
See also:   
Constructors
public JOTCaptchaImage (int width, int height)
public JOTCaptchaImage (int width, int height, int ALPHA_TYPE)
Methods
Hide/Show inherited methods
public void drawFilledRectangle (int x, int y, int x2, int y2, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
protected void drawHorizontalLine (int lineThickness, int x, int x2, int y, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
public void drawLine (int lineThickness, int x, int y, int x2, int y2, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
public void drawRectangle (int lineThickness, int x, int y, int x2, int y2, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
protected void drawVerticalLine (int lineThickness, int x, int y, int y2, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
protected void drawWavyHorizontalLine (int lineThickness, int x, int x2, int y, JOTAbstractPixel pixel, int wavyness, boolean holes)
public void drawWavyLine (int lineThickness, int x, int y, int x2, int y2, JOTAbstractPixel pixel, boolean holes)
  Draw a wavy line with given thickness (uses wavyness) If holes is enabled, some blank pixel with be mixed, leaving holes
public void drawWavyLine (int x, int y, int x2, int y2, JOTAbstractPixel pixel, boolean holes)
  Draw a wavy line with a thickness of 1 pixel (uses wavyness)
protected void drawWavyVerticalLine (int lineThickness, int x, int y, int y2, JOTAbstractPixel pixel, int wavyness, boolean holes)
public void fillImage (JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
  fill the whole image with the same pixel ie: set a background
public int getColorDepth (long maxColors) throws Exception [Inherited From JOTAbstractImage]
  return the color depth in bits (ie: how big the palette needs to be) ie: 1: 2 colors or less 4: 16 colors or less 8: 256 colors or less 16: 65536 colors or less 24: 16 777 216 colors or less 32: > 16 777 216 colors resource intensive Note: maxColors, is the maximum you want to look for, if more that "maxColor" colors are found, an exception will be thrown.
public int getData () [Inherited From JOTAbstractImage]
public int getHeight () [Inherited From JOTAbstractImage]
public JOTAbstractPixel getPixel (int x, int y) [Inherited From JOTAbstractImage]
public int getWaviness ()
public int getWidth () [Inherited From JOTAbstractImage]
public void setPixel (int x, int y, JOTAbstractPixel pixel) [Inherited From JOTAbstractImage]
public void setWaviness (int waviness)
public int writeToStream (JOTAbstractImageWriterInterface imageWriter, OutputStream stream) throws Exception [Inherited From JOTAbstractImage]
Fields
Hide/Show inherited fields
publicfinalstatic int ALPHA_SUPPORT_NONE = "1" [Inherited From JOTAbstractImage]
Default: Alpha values are ignored, but much faster perfomance
publicfinalstatic int ALPHA_SUPPORT_SIMPLE_BLEND = "2" [Inherited From JOTAbstractImage]
  If a pixel is set a new color, we will mix the new color with the old one.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar