|
com.aspose.barcode
Class BarCodeInfo
java.lang.Object
com.aspose.barcode.BarCodeInfo
public final class BarCodeInfo - extends java.lang.Object
Encloses x barcode found by BarCodeReader in barcode recognition
Example
public void paint(Graphics g)
{
try
{
Image img = this.getToolkit().getImage("c:\\test.jpg");
BarCodeReader reader = new BarCodeReader(img);
BarCodeInfo[] results = null;
results = reader.read();
if(results.length > 0)
{
g.drawString("barcode found:" + results[0].getCodeText(), 10, 10);
}
else
{
g.drawString("barcode not found", 10, 10);
}
} catch (Exception ex)
{
ex.printStackTrace();
}
}
- See Also:
BarCodeReader.read
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getBoundingRectangle
public java.awt.Rectangle getBoundingRectangle()
- Gets the bounding rectangle enclosing the detected barcode on an image
getChecksumPosition
public int getChecksumPosition()
- Gets the checksum's position on code text for detected one dimentional barcode
- Returns:
- int position of checksum
- See Also:
getCodeText()
getCodeText
public java.lang.String getCodeText()
- Gets the code text of x detected barcode
- Returns:
- CodeText of the detected barcode
getSupplementInfo
public BarCodeInfo getSupplementInfo()
- Gets the detected supplement barcode
- See Also:
BarCodeReader.setDetectSupplement
getSymbology
public long getSymbology()
- Gets the symbology of the detected barcode. 0 will be returned when representing supplement barcode
- See Also:
Symbology
hasSupplement
public boolean hasSupplement()
- Whether this barcode has supplement barcode attached
- Returns:
- boolean
|