API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.image. JOTAbstractImage View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTAbstractImage
Implements
Subclasses
Description
public class JOTAbstractImage
  Represent an image data in a plain format, decoupled from storage format and AWT.
See also:   
Constructors
public JOTAbstractImage (int width, int height)
public JOTAbstractImage (int width, int height, int alphaSupport)
 
Methods
Hide/Show inherited methods
public void drawFilledRectangle (int x, int y, int x2, int y2, JOTAbstractPixel pixel)
protected void drawHorizontalLine (int lineThickness, int x, int x2, int y, JOTAbstractPixel pixel)
public void drawLine (int lineThickness, int x, int y, int x2, int y2, JOTAbstractPixel pixel)
public void drawRectangle (int lineThickness, int x, int y, int x2, int y2, JOTAbstractPixel pixel)
protected void drawVerticalLine (int lineThickness, int x, int y, int y2, JOTAbstractPixel pixel)
public void fillImage (JOTAbstractPixel pixel)
  fill the whole image with the same pixel ie: set a background
public int getColorDepth (long maxColors) throws Exception
  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 ()
public int getHeight ()
public JOTAbstractPixel getPixel (int x, int y)
public int getWidth ()
public void setPixel (int x, int y, JOTAbstractPixel pixel)
public int writeToStream (JOTAbstractImageWriterInterface imageWriter, OutputStream stream) throws Exception
Fields
Hide/Show inherited fields
publicfinalstatic int ALPHA_SUPPORT_NONE = "1"
Default: Alpha values are ignored, but much faster perfomance
publicfinalstatic int ALPHA_SUPPORT_SIMPLE_BLEND = "2"
  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