public class BarcodeElement extends BasicElement
Represent a barcode block.
Constructor and Description |
---|
BarcodeElement(String name,
Point2D.Float position,
Dimension2D 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 type of bar code to read
|
void |
loadProperties(com.aspose.omr.StringDictionary properties)
Initializes the properties of an element from their string representation.
|
Map<String,String> |
saveProperties()
Converts values of the properties of an element from their string representation.
|
void |
setBarCodeType(long value)
Sets type of bar code to read
|
getDataCollections, getName, getPosition, getSize, setName, setPosition, setSize
public BarcodeElement(String name, Point2D.Float position, Dimension2D 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 BasicElement
image
- The image to extract data from.ignored
- Configuration for OMR extraction algorithm (ignored.)public long getBarCodeType()
Gets type of bar code to read
public void loadProperties(com.aspose.omr.StringDictionary properties)
Initializes the properties of an element from their string representation.
loadProperties
in class BasicElement
properties
- A collection of properties' values.public Map<String,String> saveProperties()
Converts values of the properties of an element from their string representation.
saveProperties
in class BasicElement
public void setBarCodeType(long value)
Sets type of bar code to read
Copyright © 2017. All Rights Reserved.