software.authoring
Interface BmpTogeometryInterface

All Known Implementing Classes:
BmpToGeometry, BmpToGeometry

public interface BmpTogeometryInterface


Method Summary
 void createGeometry(java.awt.image.BufferedImage bi, float dpi, int noCols, java.lang.String geometryFile, java.lang.String electionSpecFile)
           
 java.util.Vector<Cluster> getAllColors()
           
 

Method Detail

createGeometry

void createGeometry(java.awt.image.BufferedImage bi,
                    float dpi,
                    int noCols,
                    java.lang.String geometryFile,
                    java.lang.String electionSpecFile)
                    throws java.lang.Exception
Parameters:
bi - - the image to be scanned
dpi - - the dpi of the image (it cannot be infered from the image since some images do not have a dpi)
noCols - - the number of columns the contests are arranged in
geometryFile - - where to write the geometry file
electionSpecFile - - where to write the default Election Specification
Throws:
java.lang.Exception - - an exception is thrown if the number of bullets is different from the number of dunots for one contest (or for the serial number)

getAllColors

java.util.Vector<Cluster> getAllColors()
Returns:
- all the Colors that the image is scanned for