public class BarcodeElement extends OmrElement
Represent a BarCode element block.
| Constructor and Description |
|---|
BarcodeElement(String name,
Point2D.Float position,
Dimension2D.Float size)
Initializes a new instance of the
BarcodeElement class. |
| Modifier and Type | Method and Description |
|---|---|
String |
extractData(OmrImage image,
OmrConfig ignored)
Extracts data from a portion of scanned OMR sheet assigned to this element.
|
long |
getBarCodeType()
Gets the BarCode type to extract.
|
void |
loadProperties(StringDictionary properties)
Initializes the properties of an element from their string representation.
|
StringDictionary |
saveProperties()
Converts values of the properties of an element from their string representation.
|
void |
setBarCodeType(long barcodeType)
Sets the BarCode type to extract.
|
getCells, getConfiguration, isHorizontal, isHorizontal, setConfigurationgetName, getPosition, getSize, setName, setPosition, setSizepublic BarcodeElement(String name, Point2D.Float position, Dimension2D.Float size)
Initializes a new instance of the BarcodeElement class.
name - The name of the element.position - Element position, in millimeters, relative to top left corner of an imagesize - Size of the element, in millimeters.public String extractData(OmrImage image, OmrConfig ignored)
Extracts data from a portion of scanned OMR sheet assigned to this element.
extractData in class BasicElementimage - The image to extract data from.ignored - Configuration for OMR extraction algorithm (ignored.)public long getBarCodeType()
Gets the BarCode type to extract.
public void loadProperties(StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties in class OmrElementproperties - A collection of properties' values.public StringDictionary saveProperties()
Converts values of the properties of an element from their string representation.
saveProperties in class OmrElementpublic void setBarCodeType(long barcodeType)
throws IllegalArgumentException
Sets the BarCode type to extract.
barcodeType - The BarCode type to extract. See the com.aspose.barcoderecognition.BarCodeReadType for the list of possible values.IllegalAccessExceptionUnsupportedOperationExceptionIllegalArgumentExceptionCopyright © 2014. All rights reserved.