public class ResultImageItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResultImageItem.ImageInfo
Corresponding to TWAIN's TW_IMAGEINFO struct
|
static class |
ResultImageItem.ImageLayout
Corresponding to TWAIN's TW_IMAGELAYOUT struct
|
Modifier and Type | Method and Description |
---|---|
static ResultImageItem |
createScanResultImageItem(java.util.Map<java.lang.String,java.lang.Object> jsonImageObject)
Creates ScanResultImageItem if the jsonImageObject is not null.
|
java.util.Date |
getAcquiredOn()
The acquisition time or null if not available.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getBarcodes()
List of barcodes recognized on the image.
|
java.lang.String |
getCap(int capCode)
Retrieves the value of the given cap.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCaps()
Caps in key(cap name)-value map.
|
java.lang.String |
getDocNewSepAsString()
Returns 'NEW', 'NEW_SEP' or null.
|
java.lang.String |
getExtendedImageAttr(int attrCode)
Retrieves the value of the given attribute.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtendedImageAttrs()
Extended image attributes in key(extended image attribute name)-value map.
|
ResultImageItem.ImageInfo |
getImageInfo()
Image info if available.
|
int |
getImageInfoBitDepth()
Gets the bit depth (bits per pixel).
|
int |
getImageInfoHeight()
Gets the image height.
|
int |
getImageInfoPixelType()
Gets pixel type.
|
int |
getImageInfoResolution()
Gets the image resolution in x direction.
|
int |
getImageInfoWidth()
Gets the image width.
|
ResultImageItem.ImageLayout |
getImageLayout()
Image layout if available.
|
int |
getImageLayoutDocumentNumber()
Gets the document number.
|
double[] |
getImageLayoutFrame()
Gets the frame location (left, top, right, bottom) in unit TwainConstants.ICAP_UNITS.
|
int |
getImageLayoutFrameNumber()
Gets the frame number.
|
int |
getImageLayoutPageNumber()
Gets the page number.
|
double |
getInkCoverage()
Ink coverage - available only if blank page detection is enabled.
|
java.lang.String |
getTweiBarcodeText()
Returns the value of TwainConstants.TWEI_BARCODETEXT or null if unsupported.
|
java.lang.String |
getTweiPatchcode()
Return value "0", ...
|
java.lang.String |
getTweiValue(java.lang.String tweiName)
Return value "0", ...
|
boolean |
isBlank()
Whether it is blank - available only if blank page detection is enabled.
|
boolean |
isDocNew()
Whether this image marks a new document with it as a first page.
|
boolean |
isDocNewSeparator()
Whether this image marks a new document from the next image.
|
void |
setDocNew(boolean docNew,
boolean isSeparator)
Mark or unmark new doc.
|
java.util.Map<java.lang.String,java.lang.Object> |
toJsonObject() |
public java.util.Map<java.lang.String,java.lang.Object> toJsonObject()
public java.lang.String getDocNewSepAsString()
public boolean isDocNewSeparator()
public boolean isDocNew()
public void setDocNew(boolean docNew, boolean isSeparator)
docNew
- whether marks a new documentisSeparator
- whether this image should be included in the new docpublic static ResultImageItem createScanResultImageItem(java.util.Map<java.lang.String,java.lang.Object> jsonImageObject)
jsonImageObject
- public java.util.Map<java.lang.String,java.lang.Object> getCaps()
public java.lang.String getCap(int capCode)
capCode
- public java.util.Map<java.lang.String,java.lang.Object> getExtendedImageAttrs()
public java.lang.String getTweiPatchcode()
public java.lang.String getTweiValue(java.lang.String tweiName)
public java.lang.String getTweiBarcodeText()
public java.lang.String getExtendedImageAttr(int attrCode)
attrCode
- public ResultImageItem.ImageInfo getImageInfo()
public int getImageInfoResolution()
public int getImageInfoWidth()
public int getImageInfoHeight()
public int getImageInfoPixelType()
public int getImageInfoBitDepth()
public ResultImageItem.ImageLayout getImageLayout()
public int getImageLayoutDocumentNumber()
public int getImageLayoutFrameNumber()
public int getImageLayoutPageNumber()
public double[] getImageLayoutFrame()
public java.util.Date getAcquiredOn()
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getBarcodes()
public boolean isBlank()
public double getInkCoverage()
v12.0.5.0 | Copyright © Asprise Software. All Rights Reserved. Please visit the product page at asprise.com