|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.twain.TwainSource
public class TwainSource
Java wrapper for TWAIN DS.
For more information about various capabilities see TWAIN Specification (version 1.9).
Nested Class Summary | |
---|---|
class |
TwainSource.Frame
|
Field Summary |
---|
Fields inherited from interface SK.gnome.morena.MorenaConstants |
---|
MORENA_MESSAGES, VERSION |
Method Summary | |
---|---|
void |
acquireImage(boolean uiVisible,
java.awt.image.ImageConsumer[] consumers)
Starts image production. |
void |
acquireImage(boolean uiVisible,
java.lang.String fileName,
int format)
Saves image to file using Twain file transfer mode. |
void |
addConsumer(java.awt.image.ImageConsumer consumer)
This method is used to register an ImageConsumer with the ImageProducer for access to the image data during a later reconstruction of the Image. |
void |
clearPage()
Sets ICAP_CLEARPAGE capability value to true. |
boolean |
endOfJob()
Checks if there are more pages in current job. |
void |
feedPage()
Sets ICAP_FEEDPAGE capability value to true. |
int |
getActualBitsPerPixel()
Gets TW_IMAGEINFO.BitsPerPixel. |
int |
getActualImageLength()
Gets TW_IMAGEINFO.ImageLength. |
int |
getActualImageWidth()
Gets TW_IMAGEINFO.ImageWidth. |
int |
getActualPixelType()
Gets TW_IMAGEINFO.PixelType. |
double |
getActualXResolution()
Gets TW_IMAGEINFO.XResolution. |
double |
getActualYResolution()
Gets TW_IMAGEINFO.YResolution. |
int |
getAlarmVolume()
Gets CAP_ALARMVOLUME capability value. |
int |
getAudioFileFormat()
Gets ACAP_AUDIOFILEFORMAT capability value. |
int |
getAudioTransferMech()
Gets ACAP_XFERMECH capability value. |
java.lang.String |
getAuthor()
Gets CAP_AUTHOR capability value. |
boolean |
getAutoBright()
Gets ICAP_AUTOBRIGHT capability value. |
boolean |
getAutoFeed()
Gets CAP_AUTOFEED capability value. |
boolean |
getAutomaticBorderDetection()
Gets ICAP_AUTOMATICBORDERDETECTION capability value. |
int |
getAutomaticCapture()
Gets CAP_AUTOMATICCAPTURE capability value. |
boolean |
getAutomaticDeskew()
Gets ICAP_AUTOMATICDESKEW capability value. |
boolean |
getAutomaticRotate()
Gets ICAP_AUTOMATICROTATE capability value. |
boolean |
getAutoScan()
Gets CAP_AUTOSCAN capability value. |
boolean |
getBarCodeDetectionEnabled()
Gets ICAP_BARCODEDETECTIONENABLED capability value. |
int |
getBarCodeMaxRetries()
Gets ICAP_BARCODEMAXRETRIES capability value. |
int |
getBarCodeMaxSearchPriorities()
Gets ICAP_BARCODEMAXSEARCHPRIORITIES capability value. |
int |
getBarCodeSearchMode()
Gets ICAP_BARCODESEARCHMODE capability value. |
int |
getBarCodeTimeout()
Gets ICAP_BARCODETIMEOUT capability value. |
int |
getBatteryMinutes()
Gets CAP_BATTERYMINUTES capability value. |
int |
getBatteryPercentage()
Gets CAP_BATTERYPERCENTAGE capability value. |
int |
getBitDepth()
Gets ICAP_BITDEPTH capability value. |
int |
getBitDepthReduction()
Gets ICAP_BITDEPTHREDUCTION capability value. |
int |
getBitOrder()
Gets ICAP_BITORDER capability value. |
int |
getBitOrderCodes()
Gets ICAP_BITORDERCODES capability value. |
double |
getBrightness()
Gets ICAP_BRIGHTNESS capability value. |
boolean |
getCameraPreviewUI()
Gets CAP_CAMERAPREVIEWUI capability value. |
java.lang.String |
getCaption()
Gets CAP_CAPTION capability value. |
int |
getCCITTKFactor()
Gets ICAP_CCITTKFACTOR capability value. |
int |
getClearBuffers()
Gets CAP_CLEARBUFFERS capability value. |
int |
getCompression()
Gets ICAP_COMPRESSION capability value. |
int |
getConditionCode()
Gets last TWAIN operation condition code. |
double |
getContrast()
Gets ICAP_CONTRAST capability value. |
boolean |
getCustomDSData()
Gets CAP_CUSTOMDSDATA capability value. |
int |
getDefaultAudioFileFormat()
Gets ACAP_AUDIOFILEFORMAT capability default value. See getAudioFileFormat() for description. |
int |
getDefaultAudioTransferMech()
Gets ACAP_XFERMECH capability default value. See getAudioTransferMech() for description. |
int |
getDefaultBarCodeMaxRetries()
Gets ICAP_BARCODEMAXRETRIES capability default value. See getBarCodeMaxRetries() for description. |
int |
getDefaultBarCodeMaxSearchPriorities()
Gets ICAP_BARCODEMAXSEARCHPRIORITIES capability default value. See getBarCodeMaxSearchPriorities() for description. |
int |
getDefaultBarCodeSearchMode()
Gets ICAP_BARCODESEARCHMODE capability default value. See getBarCodeSearchMode() for description. |
int |
getDefaultBarCodeTimeout()
Gets ICAP_BARCODETIMEOUT capability default value. See getBarCodeTimeout() for description. |
int |
getDefaultBitDepth()
Gets ICAP_BITDEPTH capability default value. See getBitDepth() for description. |
int |
getDefaultBitDepthReduction()
Gets ICAP_BITDEPTHREDUCTION capability default value. See getBitDepthReduction() for description. |
int |
getDefaultBitOrder()
Gets ICAP_BITORDER capability default value. See getBitOrder() for description. |
int |
getDefaultBitOrderCodes()
Gets ICAP_BITORDERCODES capability default value. See getBitOrderCodes() for description. |
double |
getDefaultBrightness()
Gets ICAP_BRIGHTNESS capability default value. See getBrightness() for description. |
int |
getDefaultCompression()
Gets ICAP_COMPRESSION capability default value. See getCompression() for description. |
double |
getDefaultContrast()
Gets ICAP_CONTRAST capability default value. See getContrast() for description. |
double |
getDefaultExposureTime()
Gets ICAP_EXPOSURETIME capability default value. See getExposureTime() for description. |
int |
getDefaultFlashUsed()
Gets ICAP_FLASHUSED2 capability default value. See getFlashUsed() for description. |
double |
getDefaultHighlight()
Gets ICAP_HIGHLIGHT capability default value. See getHighlight() for description. |
int |
getDefaultImageFileFormat()
Gets ICAP_IMAGEFILEFORMAT capability default value. See getImageFileFormat() for description. |
int |
getDefaultImageFilter()
Gets ICAP_IMAGEFILTER capability default value. See getImageFilter() for description. |
int |
getDefaultJobControl()
Gets CAP_JOBCONTROL capability default value. See getJobControl() for description. |
int |
getDefaultJPEGPixelType()
Gets ICAP_JPEGPIXELTYPE capability default value. See getJPEGPixelType() for description. |
int |
getDefaultJPEGQuality()
Gets ICAP_JPEGQUALITY capability default value. See getJPEGQuality() for description. |
boolean |
getDefaultLampState()
Gets ICAP_LAMPSTATE capability default value. See getLampState() for description. |
int |
getDefaultLanguage()
Gets CAP_LANGUAGE capability default value. See getLanguage() for description. |
int |
getDefaultLightPath()
Gets ICAP_LIGHTPATH capability default value. See getLightPath() for description. |
int |
getDefaultLightSource()
Gets ICAP_LIGHTSOURCE capability default value. See getLightSource() for description. |
int |
getDefaultMaxBatchBuffers()
Gets CAP_MAXBATCHBUFFERS capability default value. See getMaxBatchBuffers() for description. |
int |
getDefaultNoiseFilter()
Gets ICAP_NOISEFILTER capability default value. See getNoiseFilter() for description. |
int |
getDefaultOrientation()
Gets ICAP_ORIENTATION capability default value. See getOrientation() for description. |
int |
getDefaultOverscan()
Gets ICAP_OVERSCAN capability default value. See getOverscan() for description. |
int |
getDefaultPatchCodeMaxRetries()
Gets ICAP_PATCHCODEMAXRETRIES capability default value. See getPatchCodeMaxRetries() for description. |
int |
getDefaultPatchCodeMaxSearchPriorities()
Gets ICAP_PATCHCODEMAXSEARCHPRIORITIES capability default value. See getPatchCodeMaxSearchPriorities() for description. |
int |
getDefaultPatchCodeSearchMode()
Gets ICAP_PATCHCODESEARCHMODE capability default value. See getPatchCodeSearchMode() for description. |
int |
getDefaultPatchCodeTimeout()
Gets ICAP_PATCHCODETIMEOUT capability default value. See getPatchCodeTimeout() for description. |
int |
getDefaultPixelFlavor()
Gets ICAP_PIXELFLAVOR capability default value. See getPixelFlavor() for description. |
int |
getDefaultPixelFlavorCodes()
Gets ICAP_PIXELFLAVORCODES capability default value. See getPixelFlavorCodes() for description. |
int |
getDefaultPixelType()
Gets ICAP_PIXELTYPE capability default value. See getPixelType() for description. |
int |
getDefaultPlanarChunky()
Gets ICAP_PLANARCHUNKY capability default value. See getPlanarChunky() for description. |
int |
getDefaultPowerSupply()
Gets CAP_POWERSUPPLY capability default value. See getPowerSupply() for description. |
int |
getDefaultPrinter()
Gets CAP_PRINTER capability default value. See getPrinter() for description. |
int |
getDefaultPrinterMode()
Gets CAP_PRINTERMODE capability default value. See getPrinterMode() for description. |
double |
getDefaultRotation()
Gets ICAP_ROTATION capability default value. See getRotation() for description. |
double |
getDefaultShadow()
Gets ICAP_SHADOW capability default value. See getShadow() for description. |
int |
getDefaultSupportedSizes()
Gets ICAP_SUPPORTEDSIZES capability default value. See getSupportedSizes() for description. |
double |
getDefaultThreshold()
Gets ICAP_THRESHOLD capability default value. See getThreshold() for description. |
int |
getDefaultTransferMech()
Gets ICAP_XFERMECH capability default value. See getTransferMech() for description. |
int |
getDefaultUnits()
Gets ICAP_UNITS capability default value. See getUnits() for description. |
double |
getDefaultXNativeResolution()
Gets ICAP_XNATIVERESOLUTION capability default value. See getXNativeResolution() for description. |
double |
getDefaultXResolution()
Gets ICAP_XRESOLUTION capability default value. See getXResolution() for description. |
double |
getDefaultXScaling()
Gets ICAP_XSCALING capability default value. See getXScaling() for description. |
double |
getDefaultYNativeResolution()
Gets ICAP_YNATIVERESOLUTION capability default value. See getYNativeResolution() for description. |
double |
getDefaultYResolution()
Gets ICAP_YRESOLUTION capability default value. See getYResolution() for description. |
double |
getDefaultYScaling()
Gets ICAP_YSCALING capability default value. See getYScaling() for description. |
int |
getDefaultZoomFactor()
Gets ICAP_ZOOMFACTOR capability default value. See getZoomFactor() for description. |
boolean |
getDeviceOnLine()
Gets CAP_DEVICEONLINE capability value. |
java.lang.String |
getDeviceTimeDate()
Gets CAP_DEVICETIMEDATE capability value. |
double |
getDoubleCapability(java.lang.String name,
int capability,
int twty)
Some Twain drivers have capabilities not defined in the Twain specification. |
int |
getDuplex()
Gets CAP_DUPLEX capability value. |
boolean |
getDuplexEnabled()
Gets CAP_DUPLEXENABLED capability value. |
boolean |
getEnableDSUIOnly()
Gets CAP_ENABLEDSUIONLY capability value. |
int |
getEndorser()
Gets CAP_ENDORSER capability value. |
double |
getExposureTime()
Gets ICAP_EXPOSURETIME capability value. |
boolean |
getExtImageInfo()
Gets ICAP_EXTIMAGEINFO capability value. |
int |
getFeederAlignment()
Gets CAP_FEEDERALIGNMENT capability value. |
boolean |
getFeederEnabled()
Gets CAP_FEEDERENABLED capability value. |
boolean |
getFeederLoaded()
Gets CAP_FEEDERLOADED capability value. |
int |
getFeederOrder()
Gets CAP_FEEDERORDER capability value. |
int |
getFilter()
Gets ICAP_FILTER capability value. |
int |
getFlashUsed()
Gets ICAP_FLASHUSED2 capability value. |
int |
getFlipRotation()
Gets ICAP_FLIPROTATION capability value. |
TwainSource.Frame |
getFrame()
Returns frame for last acquired image. |
double |
getGamma()
Gets ICAP_GAMMA capability value. |
java.lang.String |
getHalftones()
Gets ICAP_HALFTONES capability value. |
double |
getHighlight()
Gets ICAP_HIGHLIGHT capability value. |
int |
getIdentity()
Gets source TW_IDENTITY structure pointer for use in non-JavaTwain JNI code. |
int |
getImageDataSet()
Gets ICAP_IMAGEDATASET capability value. |
int |
getImageFileFormat()
Gets ICAP_IMAGEFILEFORMAT capability value. |
int |
getImageFilter()
Gets ICAP_IMAGEFILTER capability value. |
boolean |
getIndicators()
Gets CAP_INDICATORS capability value. |
int |
getIntCapability(java.lang.String name,
int capability,
int twty)
Some Twain drivers have capabilities not defined in the Twain specification. |
int |
getJobControl()
Gets CAP_JOBCONTROL capability value. |
int |
getJPEGPixelType()
Gets ICAP_JPEGPIXELTYPE capability value. |
int |
getJPEGQuality()
Gets ICAP_JPEGQUALITY capability value. |
boolean |
getLampState()
Gets ICAP_LAMPSTATE capability value. |
int |
getLanguage()
Gets CAP_LANGUAGE capability value. |
int |
getLightPath()
Gets ICAP_LIGHTPATH capability value. |
int |
getLightSource()
Gets ICAP_LIGHTSOURCE capability value. |
int |
getMaxBatchBuffers()
Gets CAP_MAXBATCHBUFFERS capability value. |
double |
getMinimumHeight()
Gets ICAP_MINIMUMHEIGHT capability value. |
double |
getMinimumWidth()
Gets ICAP_MINIMUMWIDTH capability value. |
int |
getNoiseFilter()
Gets ICAP_NOISEFILTER capability value. |
int |
getOrientation()
Gets ICAP_ORIENTATION capability value. |
int |
getOverscan()
Gets ICAP_OVERSCAN capability value. |
boolean |
getPaperDetectable()
Gets CAP_PAPERDETECTABLE capability value. |
boolean |
getPatchCodeDetectionEnabled()
Gets ICAP_PATCHCODEDETECTIONENABLED capability value. |
int |
getPatchCodeMaxRetries()
Gets ICAP_PATCHCODEMAXRETRIES capability value. |
int |
getPatchCodeMaxSearchPriorities()
Gets ICAP_PATCHCODEMAXSEARCHPRIORITIES capability value. |
int |
getPatchCodeSearchMode()
Gets ICAP_PATCHCODESEARCHMODE capability value. |
int |
getPatchCodeTimeout()
Gets ICAP_PATCHCODETIMEOUT capability value. |
double |
getPhysicalHeight()
Gets ICAP_PHYSICALHEIGHT capability value. |
double |
getPhysicalWidth()
Gets ICAP_PHYSICALWIDTH capability value. |
int |
getPixelFlavor()
Gets ICAP_PIXELFLAVOR capability value. |
int |
getPixelFlavorCodes()
Gets ICAP_PIXELFLAVORCODES capability value. |
int |
getPixelType()
Gets ICAP_PIXELTYPE capability value. |
int |
getPlanarChunky()
Gets ICAP_PLANARCHUNKY capability value. |
int |
getPowerSupply()
Gets CAP_POWERSUPPLY capability value. |
int |
getPrinter()
Gets CAP_PRINTER capability value. |
boolean |
getPrinterEnabled()
Gets CAP_PRINTERENABLED capability value. |
int |
getPrinterIndex()
Gets CAP_PRINTERINDEX capability value. |
int |
getPrinterMode()
Gets CAP_PRINTERMODE capability value. |
java.lang.String |
getPrinterString()
Gets CAP_PRINTERSTRING capability value. |
java.lang.String |
getPrinterSuffix()
Gets CAP_PRINTERSUFFIX capability value. |
double |
getResolution()
Combines getXResolution and getYResolution capability to one common method. |
int |
getResultCode()
Gets last TWAIN operation result code. |
double |
getRotation()
Gets ICAP_ROTATION capability value. |
java.lang.String |
getSerialNumber()
Gets CAP_SERIALNUMBER capability value. |
double |
getShadow()
Gets ICAP_SHADOW capability value. |
int |
getState()
Gets TWAIN DS state. |
java.lang.String |
getStringCapability(java.lang.String name,
int capability,
int twty)
Some Twain drivers have capabilities not defined in the Twain specification. |
int[] |
getSupportedAudioFileFormat()
Gets ACAP_AUDIOFILEFORMAT capability supported values. See getAudioFileFormat() for description. |
int[] |
getSupportedAudioTransferMech()
Gets ACAP_XFERMECH capability supported values. See getAudioTransferMech() for description. |
int[] |
getSupportedBarCodeMaxRetries()
Gets ICAP_BARCODEMAXRETRIES capability supported values. See getBarCodeMaxRetries() for description. |
int[] |
getSupportedBarCodeMaxSearchPriorities()
Gets ICAP_BARCODEMAXSEARCHPRIORITIES capability supported values. See getBarCodeMaxSearchPriorities() for description. |
int[] |
getSupportedBarCodeSearchMode()
Gets ICAP_BARCODESEARCHMODE capability supported values. See getBarCodeSearchMode() for description. |
int[] |
getSupportedBarCodeTimeout()
Gets ICAP_BARCODETIMEOUT capability supported values. See getBarCodeTimeout() for description. |
int[] |
getSupportedBitDepth()
Gets ICAP_BITDEPTH capability supported values. See getBitDepth() for description. |
int[] |
getSupportedBitDepthReduction()
Gets ICAP_BITDEPTHREDUCTION capability supported values. See getBitDepthReduction() for description. |
int[] |
getSupportedBitOrder()
Gets ICAP_BITORDER capability supported values. See getBitOrder() for description. |
int[] |
getSupportedBitOrderCodes()
Gets ICAP_BITORDERCODES capability supported values. See getBitOrderCodes() for description. |
double[] |
getSupportedBrightness()
Gets ICAP_BRIGHTNESS capability supported values. See getBrightness() for description. |
int[] |
getSupportedCompression()
Gets ICAP_COMPRESSION capability supported values. See getCompression() for description. |
double[] |
getSupportedContrast()
Gets ICAP_CONTRAST capability supported values. See getContrast() for description. |
double[] |
getSupportedExposureTime()
Gets ICAP_EXPOSURETIME capability supported values. See getExposureTime() for description. |
int[] |
getSupportedFlashUsed()
Gets ICAP_FLASHUSED2 capability supported values. See getFlashUsed() for description. |
double[] |
getSupportedHighlight()
Gets ICAP_HIGHLIGHT capability supported values. See getHighlight() for description. |
int[] |
getSupportedImageFileFormat()
Gets ICAP_IMAGEFILEFORMAT capability supported values. See getImageFileFormat() for description. |
int[] |
getSupportedImageFilter()
Gets ICAP_IMAGEFILTER capability supported values. See getImageFilter() for description. |
int[] |
getSupportedJobControl()
Gets CAP_JOBCONTROL capability supported values. See getJobControl() for description. |
int[] |
getSupportedJPEGPixelType()
Gets ICAP_JPEGPIXELTYPE capability supported values. See getJPEGPixelType() for description. |
int[] |
getSupportedJPEGQuality()
Gets ICAP_JPEGQUALITY capability supported values. See getJPEGQuality() for description. |
boolean[] |
getSupportedLampState()
Gets ICAP_LAMPSTATE capability supported values. See getLampState() for description. |
int[] |
getSupportedLanguage()
Gets CAP_LANGUAGE capability supported values. See getLanguage() for description. |
int[] |
getSupportedLightPath()
Gets ICAP_LIGHTPATH capability supported values. See getLightPath() for description. |
int[] |
getSupportedLightSource()
Gets ICAP_LIGHTSOURCE capability supported values. See getLightSource() for description. |
int[] |
getSupportedMaxBatchBuffers()
Gets CAP_MAXBATCHBUFFERS capability supported values. See getMaxBatchBuffers() for description. |
int[] |
getSupportedNoiseFilter()
Gets ICAP_NOISEFILTER capability supported values. See getNoiseFilter() for description. |
int[] |
getSupportedOrientation()
Gets ICAP_ORIENTATION capability supported values. See getOrientation() for description. |
int[] |
getSupportedOverscan()
Gets ICAP_OVERSCAN capability supported values. See getOverscan() for description. |
int[] |
getSupportedPatchCodeMaxRetries()
Gets ICAP_PATCHCODEMAXRETRIES capability supported values. See getPatchCodeMaxRetries() for description. |
int[] |
getSupportedPatchCodeMaxSearchPriorities()
Gets ICAP_PATCHCODEMAXSEARCHPRIORITIES capability supported values. See getPatchCodeMaxSearchPriorities() for description. |
int[] |
getSupportedPatchCodeSearchMode()
Gets ICAP_PATCHCODESEARCHMODE capability supported values. See getPatchCodeSearchMode() for description. |
int[] |
getSupportedPatchCodeTimeout()
Gets ICAP_PATCHCODETIMEOUT capability supported values. See getPatchCodeTimeout() for description. |
int |
getSupportedPatchCodeTypes()
Gets ICAP_SUPPORTEDPATCHCODETYPES capability value. |
int[] |
getSupportedPixelFlavor()
Gets ICAP_PIXELFLAVOR capability supported values. See getPixelFlavor() for description. |
int[] |
getSupportedPixelFlavorCodes()
Gets ICAP_PIXELFLAVORCODES capability supported values. See getPixelFlavorCodes() for description. |
int[] |
getSupportedPixelType()
Gets ICAP_PIXELTYPE capability supported values. See getPixelType() for description. |
int[] |
getSupportedPlanarChunky()
Gets ICAP_PLANARCHUNKY capability supported values. See getPlanarChunky() for description. |
int[] |
getSupportedPowerSupply()
Gets CAP_POWERSUPPLY capability supported values. See getPowerSupply() for description. |
int[] |
getSupportedPrinter()
Gets CAP_PRINTER capability supported values. See getPrinter() for description. |
int[] |
getSupportedPrinterMode()
Gets CAP_PRINTERMODE capability supported values. See getPrinterMode() for description. |
double[] |
getSupportedRotation()
Gets ICAP_ROTATION capability supported values. See getRotation() for description. |
double[] |
getSupportedShadow()
Gets ICAP_SHADOW capability supported values. See getShadow() for description. |
int |
getSupportedSizes()
Gets ICAP_SUPPORTEDSIZES capability value. |
int[] |
getSupportedSupportedSizes()
Gets ICAP_SUPPORTEDSIZES capability supported values. See getSupportedSizes() for description. |
double[] |
getSupportedThreshold()
Gets ICAP_THRESHOLD capability supported values. See getThreshold() for description. |
int[] |
getSupportedTransferMech()
Gets ICAP_XFERMECH capability supported values. See getTransferMech() for description. |
int[] |
getSupportedUnits()
Gets ICAP_UNITS capability supported values. See getUnits() for description. |
double[] |
getSupportedXNativeResolution()
Gets ICAP_XNATIVERESOLUTION capability supported values. See getXNativeResolution() for description. |
double[] |
getSupportedXResolution()
Gets ICAP_XRESOLUTION capability supported values. See getXResolution() for description. |
double[] |
getSupportedXScaling()
Gets ICAP_XSCALING capability supported values. See getXScaling() for description. |
double[] |
getSupportedYNativeResolution()
Gets ICAP_YNATIVERESOLUTION capability supported values. See getYNativeResolution() for description. |
double[] |
getSupportedYResolution()
Gets ICAP_YRESOLUTION capability supported values. See getYResolution() for description. |
double[] |
getSupportedYScaling()
Gets ICAP_YSCALING capability supported values. See getYScaling() for description. |
int[] |
getSupportedZoomFactor()
Gets ICAP_ZOOMFACTOR capability supported values. See getZoomFactor() for description. |
double |
getThreshold()
Gets ICAP_THRESHOLD capability value. |
boolean |
getThumbnailsEnabled()
Gets CAP_THUMBNAILSENABLED capability value. |
int |
getTimeBeforeFirstCapture()
Gets CAP_TIMEBEFOREFIRSTCAPTURE capability value. |
int |
getTimeBetweenCaptures()
Gets CAP_TIMEBETWEENCAPTURES capability value. |
java.lang.String |
getTimeDate()
Gets CAP_TIMEDATE capability value. |
int |
getTimeFill()
Gets ICAP_TIMEFILL capability value. |
int |
getTransferCount()
Gets CAP_XFERCOUNT capability value. |
int |
getTransferMech()
Gets ICAP_XFERMECH capability value. |
boolean |
getUIControllable()
Gets CAP_UICONTROLLABLE capability value. |
boolean |
getUndefinedImageSize()
Gets ICAP_UNDEFINEDIMAGESIZE capability value. |
int |
getUnits()
Gets ICAP_UNITS capability value. |
double |
getXNativeResolution()
Gets ICAP_XNATIVERESOLUTION capability value. |
double |
getXResolution()
Gets ICAP_XRESOLUTION capability value. |
double |
getXScaling()
Gets ICAP_XSCALING capability value. |
double |
getYNativeResolution()
Gets ICAP_YNATIVERESOLUTION capability value. |
double |
getYResolution()
Gets ICAP_YRESOLUTION capability value. |
double |
getYScaling()
Gets ICAP_YSCALING capability value. |
int |
getZoomFactor()
Gets ICAP_ZOOMFACTOR capability value. |
boolean |
hasMoreImages()
Checks if there are more images to transfer. |
boolean |
isConsumer(java.awt.image.ImageConsumer consumer)
This method determines if a given ImageConsumer object is currently registered with this ImageProducer as one of its consumers. |
boolean |
maskBadValueException(boolean mask)
Masks some TwainException. maskBadValueException(true) masks all TwainException raised setCapability()/getCapability() methods by because of TWRC_FAILURE/TWCC_BADVALUE result/condition code until maskBadValueException(false) is invoked. Default value is true. |
boolean |
maskUnsupportedCapabilityException(boolean mask)
Masks some TwainException. maskUnsupportedCapabilityException(true) masks all TwainException raised setCapability()/getCapability() methods by because of TWRC_FAILURE/TWCC_CAPUNSUPPORTED result/condition code until maskUnsupportedCapabilityException(false) is invoked. Default value is true. |
void |
removeConsumer(java.awt.image.ImageConsumer consumer)
This method removes the given ImageConsumer object from the list of consumers currently registered to receive image data. |
void |
requestTopDownLeftRightResend(java.awt.image.ImageConsumer consumer)
Not used. |
void |
rewindPage()
Sets ICAP_REWINDPAGE capability value to true. |
void |
setAlarmVolume(int value)
Sets CAP_ALARMVOLUME capability value. See getAlarmVolume() for description. |
void |
setAudioFileFormat(int value)
Sets ACAP_AUDIOFILEFORMAT capability value. See getAudioFileFormat() for description. |
void |
setAudioTransferMech(int value)
Sets ACAP_XFERMECH capability value. See getAudioTransferMech() for description. |
void |
setAuthor(java.lang.String value)
Sets CAP_AUTHOR capability value. See getAuthor() for description. |
void |
setAutoBright(boolean value)
Sets ICAP_AUTOBRIGHT capability value. See getAutoBright() for description. |
void |
setAutoFeed(boolean value)
Sets CAP_AUTOFEED capability value. See getAutoFeed() for description. |
void |
setAutomaticBorderDetection(boolean value)
Sets ICAP_AUTOMATICBORDERDETECTION capability value. See getAutomaticBorderDetection() for description. |
void |
setAutomaticCapture(int value)
Sets CAP_AUTOMATICCAPTURE capability value. See getAutomaticCapture() for description. |
void |
setAutomaticDeskew(boolean value)
Sets ICAP_AUTOMATICDESKEW capability value. See getAutomaticDeskew() for description. |
void |
setAutomaticRotate(boolean value)
Sets ICAP_AUTOMATICROTATE capability value. See getAutomaticRotate() for description. |
void |
setAutoScan(boolean value)
Sets CAP_AUTOSCAN capability value. See getAutoScan() for description. |
void |
setBarCodeDetectionEnabled(boolean value)
Sets ICAP_BARCODEDETECTIONENABLED capability value. See getBarCodeDetectionEnabled() for description. |
void |
setBarCodeMaxRetries(int value)
Sets ICAP_BARCODEMAXRETRIES capability value. See getBarCodeMaxRetries() for description. |
void |
setBarCodeMaxSearchPriorities(int value)
Sets ICAP_BARCODEMAXSEARCHPRIORITIES capability value. See getBarCodeMaxSearchPriorities() for description. |
void |
setBarCodeSearchMode(int value)
Sets ICAP_BARCODESEARCHMODE capability value. See getBarCodeSearchMode() for description. |
void |
setBarCodeTimeout(int value)
Sets ICAP_BARCODETIMEOUT capability value. See getBarCodeTimeout() for description. |
void |
setBehaviorMask(int mask)
Because of some bugs in TWAIN drivers for some popular scanners, Morena implicitly works in a workaround mode. |
void |
setBitDepth(int value)
Sets ICAP_BITDEPTH capability value. See getBitDepth() for description. |
void |
setBitDepthReduction(int value)
Sets ICAP_BITDEPTHREDUCTION capability value. See getBitDepthReduction() for description. |
void |
setBitOrder(int value)
Sets ICAP_BITORDER capability value. See getBitOrder() for description. |
void |
setBitOrderCodes(int value)
Sets ICAP_BITORDERCODES capability value. See getBitOrderCodes() for description. |
void |
setBrightness(double value)
Sets ICAP_BRIGHTNESS capability value. See getBrightness() for description. |
void |
setBuffer(byte[] byteBuffer)
Sets ImageProducer buffer. |
void |
setBuffer(int[] intBuffer)
Sets ImageProducer buffer. |
void |
setCaption(java.lang.String value)
Sets CAP_CAPTION capability value. See getCaption() for description. |
void |
setCCITTKFactor(int value)
Sets ICAP_CCITTKFACTOR capability value. See getCCITTKFactor() for description. |
void |
setClearBuffers(int value)
Sets CAP_CLEARBUFFERS capability value. See getClearBuffers() for description. |
void |
setColorMode()
Sets color scan mode. |
void |
setCompression(int value)
Sets ICAP_COMPRESSION capability value. See getCompression() for description. |
void |
setContrast(double value)
Sets ICAP_CONTRAST capability value. See getContrast() for description. |
void |
setDeviceTimeDate(java.lang.String value)
Sets CAP_DEVICETIMEDATE capability value. See getDeviceTimeDate() for description. |
void |
setDoubleCapability(java.lang.String name,
int capability,
int twty,
double value)
Some Twain drivers have capabilities not defined in the Twain specification. |
void |
setDuplexEnabled(boolean value)
Sets CAP_DUPLEXENABLED capability value. See getDuplexEnabled() for description. |
void |
setEndorser(int value)
Sets CAP_ENDORSER capability value. See getEndorser() for description. |
void |
setExposureTime(double value)
Sets ICAP_EXPOSURETIME capability value. See getExposureTime() for description. |
void |
setExtImageInfo(boolean value)
Sets ICAP_EXTIMAGEINFO capability value. See getExtImageInfo() for description. |
void |
setFeederAlignment(int value)
Sets CAP_FEEDERALIGNMENT capability value. See getFeederAlignment() for description. |
void |
setFeederEnabled(boolean value)
Sets CAP_FEEDERENABLED capability value. See getFeederEnabled() for description. |
void |
setFeederOrder(int value)
Sets CAP_FEEDERORDER capability value. See getFeederOrder() for description. |
void |
setFilter(int value)
Sets ICAP_FILTER capability value. See getFilter() for description. |
void |
setFlashUsed(int value)
Sets ICAP_FLASHUSED2 capability value. See getFlashUsed() for description. |
void |
setFlipRotation(int value)
Sets ICAP_FLIPROTATION capability value. See getFlipRotation() for description. |
void |
setFrame(double left,
double top,
double right,
double bottom)
Selects frame for image acquire. |
void |
setFrame(TwainSource.Frame frame)
Selects frame for image acquire. |
void |
setGamma(double value)
Sets ICAP_GAMMA capability value. See getGamma() for description. |
void |
setGrayScaleMode()
Sets gray scale scan mode. |
void |
setHalftones(java.lang.String value)
Sets ICAP_HALFTONES capability value. See getHalftones() for description. |
void |
setHighlight(double value)
Sets ICAP_HIGHLIGHT capability value. See getHighlight() for description. |
void |
setImageDataSet(int value)
Sets ICAP_IMAGEDATASET capability value. See getImageDataSet() for description. |
void |
setImageFileFormat(int value)
Sets ICAP_IMAGEFILEFORMAT capability value. See getImageFileFormat() for description. |
void |
setImageFilter(int value)
Sets ICAP_IMAGEFILTER capability value. See getImageFilter() for description. |
void |
setIndicators(boolean value)
Sets CAP_INDICATORS capability value. See getIndicators() for description. |
void |
setIntCapability(java.lang.String name,
int capability,
int twty,
int value)
Some Twain drivers have capabilities not defined in the Twain specification. |
void |
setJobControl(int value)
Sets CAP_JOBCONTROL capability value. See getJobControl() for description. |
void |
setJPEGPixelType(int value)
Sets ICAP_JPEGPIXELTYPE capability value. See getJPEGPixelType() for description. |
void |
setJPEGQuality(int value)
Sets ICAP_JPEGQUALITY capability value. See getJPEGQuality() for description. |
void |
setLampState(boolean value)
Sets ICAP_LAMPSTATE capability value. See getLampState() for description. |
void |
setLanguage(int value)
Sets CAP_LANGUAGE capability value. See getLanguage() for description. |
void |
setLightPath(int value)
Sets ICAP_LIGHTPATH capability value. See getLightPath() for description. |
void |
setLightSource(int value)
Sets ICAP_LIGHTSOURCE capability value. See getLightSource() for description. |
void |
setMaxBatchBuffers(int value)
Sets CAP_MAXBATCHBUFFERS capability value. See getMaxBatchBuffers() for description. |
void |
setNoiseFilter(int value)
Sets ICAP_NOISEFILTER capability value. See getNoiseFilter() for description. |
void |
setOrientation(int value)
Sets ICAP_ORIENTATION capability value. See getOrientation() for description. |
void |
setOverscan(int value)
Sets ICAP_OVERSCAN capability value. See getOverscan() for description. |
void |
setPatchCodeDetectionEnabled(boolean value)
Sets ICAP_PATCHCODEDETECTIONENABLED capability value. See getPatchCodeDetectionEnabled() for description. |
void |
setPatchCodeMaxRetries(int value)
Sets ICAP_PATCHCODEMAXRETRIES capability value. See getPatchCodeMaxRetries() for description. |
void |
setPatchCodeMaxSearchPriorities(int value)
Sets ICAP_PATCHCODEMAXSEARCHPRIORITIES capability value. See getPatchCodeMaxSearchPriorities() for description. |
void |
setPatchCodeSearchMode(int value)
Sets ICAP_PATCHCODESEARCHMODE capability value. See getPatchCodeSearchMode() for description. |
void |
setPatchCodeTimeout(int value)
Sets ICAP_PATCHCODETIMEOUT capability value. See getPatchCodeTimeout() for description. |
void |
setPixelFlavor(int value)
Sets ICAP_PIXELFLAVOR capability value. See getPixelFlavor() for description. |
void |
setPixelFlavorCodes(int value)
Sets ICAP_PIXELFLAVORCODES capability value. See getPixelFlavorCodes() for description. |
void |
setPixelType(int value)
Sets ICAP_PIXELTYPE capability value. See getPixelType() for description. |
void |
setPlanarChunky(int value)
Sets ICAP_PLANARCHUNKY capability value. See getPlanarChunky() for description. |
void |
setPrinter(int value)
Sets CAP_PRINTER capability value. See getPrinter() for description. |
void |
setPrinterEnabled(boolean value)
Sets CAP_PRINTERENABLED capability value. See getPrinterEnabled() for description. |
void |
setPrinterIndex(int value)
Sets CAP_PRINTERINDEX capability value. See getPrinterIndex() for description. |
void |
setPrinterMode(int value)
Sets CAP_PRINTERMODE capability value. See getPrinterMode() for description. |
void |
setPrinterString(java.lang.String value)
Sets CAP_PRINTERSTRING capability value. See getPrinterString() for description. |
void |
setPrinterSuffix(java.lang.String value)
Sets CAP_PRINTERSUFFIX capability value. See getPrinterSuffix() for description. |
void |
setResolution(double dpi)
Combines setXResolution and setYResolution capability to one common method. |
void |
setRotation(double value)
Sets ICAP_ROTATION capability value. See getRotation() for description. |
void |
setShadow(double value)
Sets ICAP_SHADOW capability value. See getShadow() for description. |
void |
setStringCapability(java.lang.String name,
int capability,
int twty,
java.lang.String value)
Some Twain drivers have capabilities not defined in the Twain specification. |
void |
setSupportedSizes(int value)
Sets ICAP_SUPPORTEDSIZES capability value. See getSupportedSizes() for description. |
void |
setThreshold(double value)
Sets ICAP_THRESHOLD capability value. See getThreshold() for description. |
void |
setThumbnailsEnabled(boolean value)
Sets CAP_THUMBNAILSENABLED capability value. See getThumbnailsEnabled() for description. |
void |
setTimeBeforeFirstCapture(int value)
Sets CAP_TIMEBEFOREFIRSTCAPTURE capability value. See getTimeBeforeFirstCapture() for description. |
void |
setTimeBetweenCaptures(int value)
Sets CAP_TIMEBETWEENCAPTURES capability value. See getTimeBetweenCaptures() for description. |
void |
setTimeFill(int value)
Sets ICAP_TIMEFILL capability value. See getTimeFill() for description. |
void |
setTransferCount(int value)
Sets CAP_XFERCOUNT capability value. See getTransferCount() for description. |
void |
setTransferMech(int value)
Sets ICAP_XFERMECH capability value. See getTransferMech() for description. |
void |
setUndefinedImageSize(boolean value)
Sets ICAP_UNDEFINEDIMAGESIZE capability value. See getUndefinedImageSize() for description. |
void |
setUnits(int value)
Sets ICAP_UNITS capability value. See getUnits() for description. |
void |
setVisible(boolean uiVisible)
Sets User Interface window visibility flag for startProduction(). |
void |
setXResolution(double value)
Sets ICAP_XRESOLUTION capability value. See getXResolution() for description. |
void |
setXScaling(double value)
Sets ICAP_XSCALING capability value. See getXScaling() for description. |
void |
setYResolution(double value)
Sets ICAP_YRESOLUTION capability value. See getYResolution() for description. |
void |
setYScaling(double value)
Sets ICAP_YSCALING capability value. See getYScaling() for description. |
void |
setZoomFactor(int value)
Sets ICAP_ZOOMFACTOR capability value. See getZoomFactor() for description. |
void |
startProduction(java.awt.image.ImageConsumer consumer)
This method both registers the given ImageConsumer object as a consumer and starts an immediate reconstruction of the image data which will then be delivered to this consumer and any other consumer which may have already been registered with the producer. |
java.lang.String |
toString()
Returns source identity ProductName field. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setBuffer(int[] intBuffer)
public void setBuffer(byte[] byteBuffer)
public java.lang.String toString()
toString
in interface MorenaSource
toString
in class java.lang.Object
public int getState() throws TwainException
TwainException
public int getResultCode() throws TwainException
TwainException
public int getConditionCode() throws TwainException
TwainException
public int getIdentity()
public void acquireImage(boolean uiVisible, java.awt.image.ImageConsumer[] consumers) throws TwainException
TwainException
public void acquireImage(boolean uiVisible, java.lang.String fileName, int format) throws TwainException
Notice: Twain driver is not required to support the file transfer mode.
Example of file transfer mode usage:
TwainSource source; try { source = TwainManager.selectSource(null); int tm[] = source.getSupportedTransferMech(); boolean fileTransferSupported = false; for (int i = 0; i < tm.length; i++) if(tm[i] == TWSX_FILE) fileTransferSupported = true; if(fileTransferSupported) { System.err.println("File transfer mode is supported"); int ff[] = source.getSupportedImageFileFormat(); // Notice: Scanner or camera will acquire images "ff.length" times. for (int j = 0; j < ff.length; j++) { switch (ff[j]) { case TWFF_TIFF: System.err.println("TIFF format is supported"); source.acquireImage(true, "exampleFileSave.tiff", TWFF_TIFF); System.err.println(" TIFF Done!"); break; case TWFF_TIFFMULTI: System.err.println("TWFF_TIFFMULTI format is supported"); source.acquireImage(true, "exampleFileSave.tiff", TWFF_TIFFMULTI); System.err.println(" TWFF_TIFFMULTI Done!"); break; case TWFF_PNG: System.err.println("PNG format is supported"); source.acquireImage(true, "exampleFileSave.png", TWFF_PNG); System.err.println(" PNG Done!"); break; case TWFF_BMP: System.err.println("BMP format is supported"); source.acquireImage(true, "exampleFileSave.bmp", TWFF_BMP); System.err.println(" BMP Done!"); break; case TWFF_PICT: System.err.println("PICT format is supported"); source.acquireImage(true, "exampleFileSave.pct", TWFF_PICT); System.err.println(" PICT Done!"); break; case TWFF_JFIF: System.err.println("JFIF format is supported"); source.acquireImage(true, "exampleFileSave.jpeg", TWFF_JFIF); System.err.println(" JFIF Done!"); break; case TWFF_SPIFF: System.err.println("SPIFF format is supported"); source.acquireImage(true, "exampleFileSave.jpeg", TWFF_SPIFF); System.err.println(" SPIFF Done!"); break; default: System.err.println("Supported file is different as TIFF, PNG, BMP, PICT, JPEG."); } } } else System.err.println("File transfer mode is not supported"); } catch (TwainException e) { e.printStackTrace(); } finally { try { TwainManager.close(); } catch (Exception exception) { exception.printStackTrace(); } }
TwainException
public boolean hasMoreImages() throws TwainException
See ADF example in the tutorial to see how to use it.
TwainException
public boolean endOfJob() throws TwainException
TwainException
setJobControl(int)
public void setVisible(boolean uiVisible)
setVisible
in interface MorenaSource
public void setResolution(double dpi) throws TwainException
See getXResolution()
for description.
setResolution
in interface MorenaSource
TwainException
public double getResolution() throws TwainException
See getXResolution()
for description.
getResolution
in interface MorenaSource
TwainException
public void setColorMode() throws TwainException
setColorMode
in interface MorenaSource
TwainException
public void setGrayScaleMode() throws TwainException
setGrayScaleMode
in interface MorenaSource
TwainException
public TwainSource.Frame getFrame() throws TwainException
setUnits(int)
method. Some Twain drivers ignore unit set by setUnits capability and use their own default one.
TwainException
public void setFrame(TwainSource.Frame frame) throws TwainException
setUnits(int)
method. Some Twain drivers ignore unit set by setUnits capability and use their own default one.
TwainException
public void setFrame(double left, double top, double right, double bottom) throws TwainException
setUnits(int)
method. Some Twain drivers ignore unit set by setUnits capability and use their own default one.
setFrame
in interface MorenaSource
TwainException
public boolean maskUnsupportedCapabilityException(boolean mask) throws TwainException
maskUnsupportedCapabilityException
in interface MorenaSource
TwainException
public boolean maskBadValueException(boolean mask) throws TwainException
maskBadValueException
in interface MorenaSource
TwainException
public void setBehaviorMask(int mask) throws TwainException
TwainException
public void clearPage() throws TwainException
TwainException
public void feedPage() throws TwainException
TwainException
public void rewindPage() throws TwainException
TwainException
public double getActualXResolution() throws TwainException
TwainException
public double getActualYResolution() throws TwainException
TwainException
public int getActualImageWidth() throws TwainException
TwainException
public int getActualImageLength() throws TwainException
TwainException
public int getActualBitsPerPixel() throws TwainException
TwainException
public int getActualPixelType() throws TwainException
TwainException
public void setIntCapability(java.lang.String name, int capability, int twty, int value) throws TwainException
name
- Used for debug output.capability
- Capability value specified by the hardware manufacturer.twty
- One of the following value types to correct conversion: TWTY_INT8, TWTY_INT16, TWTY_INT32, TWTY_UINT8, TWTY_UINT16, TWTY_UINT32, TWTY_BOOL.value
- Value to be set.
TwainException
For example:
setPixelType(TwainConstants.TWPT_BW)
is the same as
setIntCapability("my_custom_pixel_type", 257, TwainConstants.TWTY_UINT16, TwainConstants.TWPT_BW);
TwainConstants
public int getIntCapability(java.lang.String name, int capability, int twty) throws TwainException
TwainException
setIntCapability(java.lang.String, int, int, int)
public void setDoubleCapability(java.lang.String name, int capability, int twty, double value) throws TwainException
name
- Used for debug output.capability
- Capability value specified by the hardware manufacturer.twty
- TwainConstants.TWTY_FIX32
.value
- Value to be set.
TwainException
For example:
setXResolution(75)
is the same as
setDoubleCapability("my_custom_XResolution", 4376, TwainConstants.TWTY_FIX32, 75);
public double getDoubleCapability(java.lang.String name, int capability, int twty) throws TwainException
TwainException
setDoubleCapability(java.lang.String, int, int, double)
public void setStringCapability(java.lang.String name, int capability, int twty, java.lang.String value) throws TwainException
name
- Used for debug output.capability
- Capability value specified by the hardware manufacturer.twty
- One of the following value types to correct conversion: TWTY_STR32, TWTY_STR64, TWTY_STR128, TWTY_STR255, TWTY_STR1024.value
- Value to be set.
TwainException
setIntCapability(java.lang.String, int, int, int)
,
setDoubleCapability(java.lang.String, int, int, double)
,
TwainConstants
public java.lang.String getStringCapability(java.lang.String name, int capability, int twty) throws TwainException
TwainException
setStringCapability(java.lang.String, int, int, java.lang.String)
public int getAudioFileFormat() throws TwainException
TwainException
public int[] getSupportedAudioFileFormat() throws TwainException
getAudioFileFormat()
for description.
TwainException
public int getDefaultAudioFileFormat() throws TwainException
getAudioFileFormat()
for description.
TwainException
public void setAudioFileFormat(int value) throws TwainException
getAudioFileFormat()
for description.
TwainException
public int getAudioTransferMech() throws TwainException
TwainException
public int[] getSupportedAudioTransferMech() throws TwainException
getAudioTransferMech()
for description.
TwainException
public int getDefaultAudioTransferMech() throws TwainException
getAudioTransferMech()
for description.
TwainException
public void setAudioTransferMech(int value) throws TwainException
getAudioTransferMech()
for description.
TwainException
public int getAlarmVolume() throws TwainException
TwainException
public void setAlarmVolume(int value) throws TwainException
getAlarmVolume()
for description.
TwainException
public java.lang.String getAuthor() throws TwainException
TwainException
public void setAuthor(java.lang.String value) throws TwainException
getAuthor()
for description.
TwainException
public boolean getAutoFeed() throws TwainException
TwainException
public void setAutoFeed(boolean value) throws TwainException
getAutoFeed()
for description.
TwainException
public int getAutomaticCapture() throws TwainException
TwainException
public void setAutomaticCapture(int value) throws TwainException
getAutomaticCapture()
for description.
TwainException
public boolean getAutoScan() throws TwainException
TwainException
public void setAutoScan(boolean value) throws TwainException
getAutoScan()
for description.
TwainException
public int getBatteryMinutes() throws TwainException
TwainException
public int getBatteryPercentage() throws TwainException
TwainException
public boolean getCameraPreviewUI() throws TwainException
TwainException
public java.lang.String getCaption() throws TwainException
TwainException
public void setCaption(java.lang.String value) throws TwainException
getCaption()
for description.
TwainException
public int getClearBuffers() throws TwainException
TwainException
public void setClearBuffers(int value) throws TwainException
getClearBuffers()
for description.
TwainException
public boolean getCustomDSData() throws TwainException
TwainException
public boolean getDeviceOnLine() throws TwainException
TwainException
public java.lang.String getDeviceTimeDate() throws TwainException
TwainException
public void setDeviceTimeDate(java.lang.String value) throws TwainException
getDeviceTimeDate()
for description.
TwainException
public int getDuplex() throws TwainException
TwainException
public boolean getDuplexEnabled() throws TwainException
TwainException
public void setDuplexEnabled(boolean value) throws TwainException
getDuplexEnabled()
for description.
TwainException
public boolean getEnableDSUIOnly() throws TwainException
TwainException
public int getEndorser() throws TwainException
TwainException
public void setEndorser(int value) throws TwainException
getEndorser()
for description.
TwainException
public int getFeederAlignment() throws TwainException
TwainException
public void setFeederAlignment(int value) throws TwainException
getFeederAlignment()
for description.
TwainException
public boolean getFeederEnabled() throws TwainException
TwainException
public void setFeederEnabled(boolean value) throws TwainException
getFeederEnabled()
for description.
TwainException
public boolean getFeederLoaded() throws TwainException
TwainException
public int getFeederOrder() throws TwainException
TwainException
public void setFeederOrder(int value) throws TwainException
getFeederOrder()
for description.
TwainException
public boolean getIndicators() throws TwainException
TwainException
public void setIndicators(boolean value) throws TwainException
getIndicators()
for description.
TwainException
public int getJobControl() throws TwainException
TwainException
public int[] getSupportedJobControl() throws TwainException
getJobControl()
for description.
TwainException
public int getDefaultJobControl() throws TwainException
getJobControl()
for description.
TwainException
public void setJobControl(int value) throws TwainException
getJobControl()
for description.
TwainException
public int getLanguage() throws TwainException
TwainException
public int[] getSupportedLanguage() throws TwainException
getLanguage()
for description.
TwainException
public int getDefaultLanguage() throws TwainException
getLanguage()
for description.
TwainException
public void setLanguage(int value) throws TwainException
getLanguage()
for description.
TwainException
public int getMaxBatchBuffers() throws TwainException
TwainException
public int[] getSupportedMaxBatchBuffers() throws TwainException
getMaxBatchBuffers()
for description.
TwainException
public int getDefaultMaxBatchBuffers() throws TwainException
getMaxBatchBuffers()
for description.
TwainException
public void setMaxBatchBuffers(int value) throws TwainException
getMaxBatchBuffers()
for description.
TwainException
public boolean getPaperDetectable() throws TwainException
TwainException
public int getPowerSupply() throws TwainException
TwainException
public int[] getSupportedPowerSupply() throws TwainException
getPowerSupply()
for description.
TwainException
public int getDefaultPowerSupply() throws TwainException
getPowerSupply()
for description.
TwainException
public int getPrinter() throws TwainException
TwainException
public int[] getSupportedPrinter() throws TwainException
getPrinter()
for description.
TwainException
public int getDefaultPrinter() throws TwainException
getPrinter()
for description.
TwainException
public void setPrinter(int value) throws TwainException
getPrinter()
for description.
TwainException
public boolean getPrinterEnabled() throws TwainException
TwainException
public void setPrinterEnabled(boolean value) throws TwainException
getPrinterEnabled()
for description.
TwainException
public int getPrinterIndex() throws TwainException
TwainException
public void setPrinterIndex(int value) throws TwainException
getPrinterIndex()
for description.
TwainException
public int getPrinterMode() throws TwainException
TwainException
public int[] getSupportedPrinterMode() throws TwainException
getPrinterMode()
for description.
TwainException
public int getDefaultPrinterMode() throws TwainException
getPrinterMode()
for description.
TwainException
public void setPrinterMode(int value) throws TwainException
getPrinterMode()
for description.
TwainException
public java.lang.String getPrinterString() throws TwainException
TwainException
public void setPrinterString(java.lang.String value) throws TwainException
getPrinterString()
for description.
TwainException
public java.lang.String getPrinterSuffix() throws TwainException
TwainException
public void setPrinterSuffix(java.lang.String value) throws TwainException
getPrinterSuffix()
for description.
TwainException
public java.lang.String getSerialNumber() throws TwainException
TwainException
public int getTimeBeforeFirstCapture() throws TwainException
TwainException
public void setTimeBeforeFirstCapture(int value) throws TwainException
getTimeBeforeFirstCapture()
for description.
TwainException
public int getTimeBetweenCaptures() throws TwainException
TwainException
public void setTimeBetweenCaptures(int value) throws TwainException
getTimeBetweenCaptures()
for description.
TwainException
public java.lang.String getTimeDate() throws TwainException
TwainException
public boolean getThumbnailsEnabled() throws TwainException
TwainException
public void setThumbnailsEnabled(boolean value) throws TwainException
getThumbnailsEnabled()
for description.
TwainException
public boolean getUIControllable() throws TwainException
TwainException
public int getTransferCount() throws TwainException
TwainException
public void setTransferCount(int value) throws TwainException
getTransferCount()
for description.
TwainException
public boolean getAutomaticBorderDetection() throws TwainException
TwainException
public void setAutomaticBorderDetection(boolean value) throws TwainException
getAutomaticBorderDetection()
for description.
TwainException
public boolean getAutoBright() throws TwainException
TwainException
public void setAutoBright(boolean value) throws TwainException
getAutoBright()
for description.
TwainException
public boolean getAutomaticDeskew() throws TwainException
TwainException
public void setAutomaticDeskew(boolean value) throws TwainException
getAutomaticDeskew()
for description.
TwainException
public boolean getAutomaticRotate() throws TwainException
TwainException
public void setAutomaticRotate(boolean value) throws TwainException
getAutomaticRotate()
for description.
TwainException
public boolean getBarCodeDetectionEnabled() throws TwainException
TwainException
public void setBarCodeDetectionEnabled(boolean value) throws TwainException
getBarCodeDetectionEnabled()
for description.
TwainException
public int getBarCodeMaxRetries() throws TwainException
TwainException
public int[] getSupportedBarCodeMaxRetries() throws TwainException
getBarCodeMaxRetries()
for description.
TwainException
public int getDefaultBarCodeMaxRetries() throws TwainException
getBarCodeMaxRetries()
for description.
TwainException
public void setBarCodeMaxRetries(int value) throws TwainException
getBarCodeMaxRetries()
for description.
TwainException
public int getBarCodeMaxSearchPriorities() throws TwainException
TwainException
public int[] getSupportedBarCodeMaxSearchPriorities() throws TwainException
getBarCodeMaxSearchPriorities()
for description.
TwainException
public int getDefaultBarCodeMaxSearchPriorities() throws TwainException
getBarCodeMaxSearchPriorities()
for description.
TwainException
public void setBarCodeMaxSearchPriorities(int value) throws TwainException
getBarCodeMaxSearchPriorities()
for description.
TwainException
public int getBarCodeSearchMode() throws TwainException
TwainException
public int[] getSupportedBarCodeSearchMode() throws TwainException
getBarCodeSearchMode()
for description.
TwainException
public int getDefaultBarCodeSearchMode() throws TwainException
getBarCodeSearchMode()
for description.
TwainException
public void setBarCodeSearchMode(int value) throws TwainException
getBarCodeSearchMode()
for description.
TwainException
public int getBarCodeTimeout() throws TwainException
TwainException
public int[] getSupportedBarCodeTimeout() throws TwainException
getBarCodeTimeout()
for description.
TwainException
public int getDefaultBarCodeTimeout() throws TwainException
getBarCodeTimeout()
for description.
TwainException
public void setBarCodeTimeout(int value) throws TwainException
getBarCodeTimeout()
for description.
TwainException
public int getBitDepth() throws TwainException
getBitDepth
in interface MorenaSource
TwainException
public int[] getSupportedBitDepth() throws TwainException
getBitDepth()
for description.
TwainException
public int getDefaultBitDepth() throws TwainException
getBitDepth()
for description.
TwainException
public void setBitDepth(int value) throws TwainException
getBitDepth()
for description.
setBitDepth
in interface MorenaSource
TwainException
public int getBitDepthReduction() throws TwainException
TwainException
public int[] getSupportedBitDepthReduction() throws TwainException
getBitDepthReduction()
for description.
TwainException
public int getDefaultBitDepthReduction() throws TwainException
getBitDepthReduction()
for description.
TwainException
public void setBitDepthReduction(int value) throws TwainException
getBitDepthReduction()
for description.
TwainException
public int getBitOrder() throws TwainException
TwainException
public int[] getSupportedBitOrder() throws TwainException
getBitOrder()
for description.
TwainException
public int getDefaultBitOrder() throws TwainException
getBitOrder()
for description.
TwainException
public void setBitOrder(int value) throws TwainException
getBitOrder()
for description.
TwainException
public int getBitOrderCodes() throws TwainException
TwainException
public int[] getSupportedBitOrderCodes() throws TwainException
getBitOrderCodes()
for description.
TwainException
public int getDefaultBitOrderCodes() throws TwainException
getBitOrderCodes()
for description.
TwainException
public void setBitOrderCodes(int value) throws TwainException
getBitOrderCodes()
for description.
TwainException
public double getBrightness() throws TwainException
getBrightness
in interface MorenaSource
TwainException
public double[] getSupportedBrightness() throws TwainException
getBrightness()
for description.
TwainException
public double getDefaultBrightness() throws TwainException
getBrightness()
for description.
TwainException
public void setBrightness(double value) throws TwainException
getBrightness()
for description.
setBrightness
in interface MorenaSource
TwainException
public int getCCITTKFactor() throws TwainException
TwainException
public void setCCITTKFactor(int value) throws TwainException
getCCITTKFactor()
for description.
TwainException
public int getCompression() throws TwainException
TwainException
public int[] getSupportedCompression() throws TwainException
getCompression()
for description.
TwainException
public int getDefaultCompression() throws TwainException
getCompression()
for description.
TwainException
public void setCompression(int value) throws TwainException
getCompression()
for description.
TwainException
public double getContrast() throws TwainException
getContrast
in interface MorenaSource
TwainException
public double[] getSupportedContrast() throws TwainException
getContrast()
for description.
TwainException
public double getDefaultContrast() throws TwainException
getContrast()
for description.
TwainException
public void setContrast(double value) throws TwainException
getContrast()
for description.
setContrast
in interface MorenaSource
TwainException
public double getExposureTime() throws TwainException
TwainException
public double[] getSupportedExposureTime() throws TwainException
getExposureTime()
for description.
TwainException
public double getDefaultExposureTime() throws TwainException
getExposureTime()
for description.
TwainException
public void setExposureTime(double value) throws TwainException
getExposureTime()
for description.
TwainException
public boolean getExtImageInfo() throws TwainException
TwainException
public void setExtImageInfo(boolean value) throws TwainException
getExtImageInfo()
for description.
TwainException
public int getFilter() throws TwainException
TwainException
public void setFilter(int value) throws TwainException
getFilter()
for description.
TwainException
public int getFlashUsed() throws TwainException
TwainException
public int[] getSupportedFlashUsed() throws TwainException
getFlashUsed()
for description.
TwainException
public int getDefaultFlashUsed() throws TwainException
getFlashUsed()
for description.
TwainException
public void setFlashUsed(int value) throws TwainException
getFlashUsed()
for description.
TwainException
public int getFlipRotation() throws TwainException
TwainException
public void setFlipRotation(int value) throws TwainException
getFlipRotation()
for description.
TwainException
public double getGamma() throws TwainException
TwainException
public void setGamma(double value) throws TwainException
getGamma()
for description.
TwainException
public java.lang.String getHalftones() throws TwainException
TwainException
public void setHalftones(java.lang.String value) throws TwainException
getHalftones()
for description.
TwainException
public double getHighlight() throws TwainException
TwainException
public double[] getSupportedHighlight() throws TwainException
getHighlight()
for description.
TwainException
public double getDefaultHighlight() throws TwainException
getHighlight()
for description.
TwainException
public void setHighlight(double value) throws TwainException
getHighlight()
for description.
TwainException
public int getImageDataSet() throws TwainException
TwainException
public void setImageDataSet(int value) throws TwainException
getImageDataSet()
for description.
TwainException
public int getImageFileFormat() throws TwainException
TwainException
public int[] getSupportedImageFileFormat() throws TwainException
getImageFileFormat()
for description.
TwainException
public int getDefaultImageFileFormat() throws TwainException
getImageFileFormat()
for description.
TwainException
public void setImageFileFormat(int value) throws TwainException
getImageFileFormat()
for description.
TwainException
public int getImageFilter() throws TwainException
TwainException
public int[] getSupportedImageFilter() throws TwainException
getImageFilter()
for description.
TwainException
public int getDefaultImageFilter() throws TwainException
getImageFilter()
for description.
TwainException
public void setImageFilter(int value) throws TwainException
getImageFilter()
for description.
TwainException
public int getJPEGPixelType() throws TwainException
TwainException
public int[] getSupportedJPEGPixelType() throws TwainException
getJPEGPixelType()
for description.
TwainException
public int getDefaultJPEGPixelType() throws TwainException
getJPEGPixelType()
for description.
TwainException
public void setJPEGPixelType(int value) throws TwainException
getJPEGPixelType()
for description.
TwainException
public int getJPEGQuality() throws TwainException
TwainException
public int[] getSupportedJPEGQuality() throws TwainException
getJPEGQuality()
for description.
TwainException
public int getDefaultJPEGQuality() throws TwainException
getJPEGQuality()
for description.
TwainException
public void setJPEGQuality(int value) throws TwainException
getJPEGQuality()
for description.
TwainException
public boolean getLampState() throws TwainException
TwainException
public boolean[] getSupportedLampState() throws TwainException
getLampState()
for description.
TwainException
public boolean getDefaultLampState() throws TwainException
getLampState()
for description.
TwainException
public void setLampState(boolean value) throws TwainException
getLampState()
for description.
TwainException
public int getLightPath() throws TwainException
TwainException
public int[] getSupportedLightPath() throws TwainException
getLightPath()
for description.
TwainException
public int getDefaultLightPath() throws TwainException
getLightPath()
for description.
TwainException
public void setLightPath(int value) throws TwainException
getLightPath()
for description.
TwainException
public int getLightSource() throws TwainException
TwainException
public int[] getSupportedLightSource() throws TwainException
getLightSource()
for description.
TwainException
public int getDefaultLightSource() throws TwainException
getLightSource()
for description.
TwainException
public void setLightSource(int value) throws TwainException
getLightSource()
for description.
TwainException
public double getMinimumHeight() throws TwainException
TwainException
public double getMinimumWidth() throws TwainException
TwainException
public int getNoiseFilter() throws TwainException
TwainException
public int[] getSupportedNoiseFilter() throws TwainException
getNoiseFilter()
for description.
TwainException
public int getDefaultNoiseFilter() throws TwainException
getNoiseFilter()
for description.
TwainException
public void setNoiseFilter(int value) throws TwainException
getNoiseFilter()
for description.
TwainException
public int getOrientation() throws TwainException
TwainException
public int[] getSupportedOrientation() throws TwainException
getOrientation()
for description.
TwainException
public int getDefaultOrientation() throws TwainException
getOrientation()
for description.
TwainException
public void setOrientation(int value) throws TwainException
getOrientation()
for description.
TwainException
public int getOverscan() throws TwainException
TwainException
public int[] getSupportedOverscan() throws TwainException
getOverscan()
for description.
TwainException
public int getDefaultOverscan() throws TwainException
getOverscan()
for description.
TwainException
public void setOverscan(int value) throws TwainException
getOverscan()
for description.
TwainException
public boolean getPatchCodeDetectionEnabled() throws TwainException
TwainException
public void setPatchCodeDetectionEnabled(boolean value) throws TwainException
getPatchCodeDetectionEnabled()
for description.
TwainException
public int getPatchCodeMaxRetries() throws TwainException
TwainException
public int[] getSupportedPatchCodeMaxRetries() throws TwainException
getPatchCodeMaxRetries()
for description.
TwainException
public int getDefaultPatchCodeMaxRetries() throws TwainException
getPatchCodeMaxRetries()
for description.
TwainException
public void setPatchCodeMaxRetries(int value) throws TwainException
getPatchCodeMaxRetries()
for description.
TwainException
public int getPatchCodeMaxSearchPriorities() throws TwainException
TwainException
public int[] getSupportedPatchCodeMaxSearchPriorities() throws TwainException
getPatchCodeMaxSearchPriorities()
for description.
TwainException
public int getDefaultPatchCodeMaxSearchPriorities() throws TwainException
getPatchCodeMaxSearchPriorities()
for description.
TwainException
public void setPatchCodeMaxSearchPriorities(int value) throws TwainException
getPatchCodeMaxSearchPriorities()
for description.
TwainException
public int getPatchCodeSearchMode() throws TwainException
TwainException
public int[] getSupportedPatchCodeSearchMode() throws TwainException
getPatchCodeSearchMode()
for description.
TwainException
public int getDefaultPatchCodeSearchMode() throws TwainException
getPatchCodeSearchMode()
for description.
TwainException
public void setPatchCodeSearchMode(int value) throws TwainException
getPatchCodeSearchMode()
for description.
TwainException
public int getPatchCodeTimeout() throws TwainException
TwainException
public int[] getSupportedPatchCodeTimeout() throws TwainException
getPatchCodeTimeout()
for description.
TwainException
public int getDefaultPatchCodeTimeout() throws TwainException
getPatchCodeTimeout()
for description.
TwainException
public void setPatchCodeTimeout(int value) throws TwainException
getPatchCodeTimeout()
for description.
TwainException
public double getPhysicalHeight() throws TwainException
TwainException
public double getPhysicalWidth() throws TwainException
TwainException
public int getPixelFlavor() throws TwainException
TwainException
public int[] getSupportedPixelFlavor() throws TwainException
getPixelFlavor()
for description.
TwainException
public int getDefaultPixelFlavor() throws TwainException
getPixelFlavor()
for description.
TwainException
public void setPixelFlavor(int value) throws TwainException
getPixelFlavor()
for description.
TwainException
public int getPixelFlavorCodes() throws TwainException
TwainException
public int[] getSupportedPixelFlavorCodes() throws TwainException
getPixelFlavorCodes()
for description.
TwainException
public int getDefaultPixelFlavorCodes() throws TwainException
getPixelFlavorCodes()
for description.
TwainException
public void setPixelFlavorCodes(int value) throws TwainException
getPixelFlavorCodes()
for description.
TwainException
public int getPixelType() throws TwainException
TwainException
public int[] getSupportedPixelType() throws TwainException
getPixelType()
for description.
TwainException
public int getDefaultPixelType() throws TwainException
getPixelType()
for description.
TwainException
public void setPixelType(int value) throws TwainException
getPixelType()
for description.
TwainException
public int getPlanarChunky() throws TwainException
TwainException
public int[] getSupportedPlanarChunky() throws TwainException
getPlanarChunky()
for description.
TwainException
public int getDefaultPlanarChunky() throws TwainException
getPlanarChunky()
for description.
TwainException
public void setPlanarChunky(int value) throws TwainException
getPlanarChunky()
for description.
TwainException
public double getRotation() throws TwainException
TwainException
public double[] getSupportedRotation() throws TwainException
getRotation()
for description.
TwainException
public double getDefaultRotation() throws TwainException
getRotation()
for description.
TwainException
public void setRotation(double value) throws TwainException
getRotation()
for description.
TwainException
public double getShadow() throws TwainException
TwainException
public double[] getSupportedShadow() throws TwainException
getShadow()
for description.
TwainException
public double getDefaultShadow() throws TwainException
getShadow()
for description.
TwainException
public void setShadow(double value) throws TwainException
getShadow()
for description.
TwainException
public int getSupportedPatchCodeTypes() throws TwainException
TwainException
public int getSupportedSizes() throws TwainException
TwainException
public int[] getSupportedSupportedSizes() throws TwainException
getSupportedSizes()
for description.
TwainException
public int getDefaultSupportedSizes() throws TwainException
getSupportedSizes()
for description.
TwainException
public void setSupportedSizes(int value) throws TwainException
getSupportedSizes()
for description.
TwainException
public double getThreshold() throws TwainException
TwainException
public double[] getSupportedThreshold() throws TwainException
getThreshold()
for description.
TwainException
public double getDefaultThreshold() throws TwainException
getThreshold()
for description.
TwainException
public void setThreshold(double value) throws TwainException
getThreshold()
for description.
TwainException
public int getTimeFill() throws TwainException
TwainException
public void setTimeFill(int value) throws TwainException
getTimeFill()
for description.
TwainException
public boolean getUndefinedImageSize() throws TwainException
TwainException
public void setUndefinedImageSize(boolean value) throws TwainException
getUndefinedImageSize()
for description.
TwainException
public int getUnits() throws TwainException
TwainException
public int[] getSupportedUnits() throws TwainException
getUnits()
for description.
TwainException
public int getDefaultUnits() throws TwainException
getUnits()
for description.
TwainException
public void setUnits(int value) throws TwainException
getUnits()
for description.
TwainException
public int getTransferMech() throws TwainException
TwainException
public int[] getSupportedTransferMech() throws TwainException
getTransferMech()
for description.
TwainException
public int getDefaultTransferMech() throws TwainException
getTransferMech()
for description.
TwainException
public void setTransferMech(int value) throws TwainException
getTransferMech()
for description.
TwainException
public double getXNativeResolution() throws TwainException
TwainException
public double[] getSupportedXNativeResolution() throws TwainException
getXNativeResolution()
for description.
TwainException
public double getDefaultXNativeResolution() throws TwainException
getXNativeResolution()
for description.
TwainException
public double getXResolution() throws TwainException
TwainException
public double[] getSupportedXResolution() throws TwainException
getXResolution()
for description.
TwainException
public double getDefaultXResolution() throws TwainException
getXResolution()
for description.
TwainException
public void setXResolution(double value) throws TwainException
getXResolution()
for description.
TwainException
public double getXScaling() throws TwainException
TwainException
public double[] getSupportedXScaling() throws TwainException
getXScaling()
for description.
TwainException
public double getDefaultXScaling() throws TwainException
getXScaling()
for description.
TwainException
public void setXScaling(double value) throws TwainException
getXScaling()
for description.
TwainException
public double getYNativeResolution() throws TwainException
TwainException
public double[] getSupportedYNativeResolution() throws TwainException
getYNativeResolution()
for description.
TwainException
public double getDefaultYNativeResolution() throws TwainException
getYNativeResolution()
for description.
TwainException
public double getYResolution() throws TwainException
TwainException
public double[] getSupportedYResolution() throws TwainException
getYResolution()
for description.
TwainException
public double getDefaultYResolution() throws TwainException
getYResolution()
for description.
TwainException
public void setYResolution(double value) throws TwainException
getYResolution()
for description.
TwainException
public double getYScaling() throws TwainException
TwainException
public double[] getSupportedYScaling() throws TwainException
getYScaling()
for description.
TwainException
public double getDefaultYScaling() throws TwainException
getYScaling()
for description.
TwainException
public void setYScaling(double value) throws TwainException
getYScaling()
for description.
TwainException
public int getZoomFactor() throws TwainException
TwainException
public int[] getSupportedZoomFactor() throws TwainException
getZoomFactor()
for description.
TwainException
public int getDefaultZoomFactor() throws TwainException
getZoomFactor()
for description.
TwainException
public void setZoomFactor(int value) throws TwainException
getZoomFactor()
for description.
TwainException
public void addConsumer(java.awt.image.ImageConsumer consumer)
addConsumer
in interface java.awt.image.ImageProducer
startProduction(java.awt.image.ImageConsumer)
public boolean isConsumer(java.awt.image.ImageConsumer consumer)
isConsumer
in interface java.awt.image.ImageProducer
public void removeConsumer(java.awt.image.ImageConsumer consumer)
removeConsumer
in interface java.awt.image.ImageProducer
public void startProduction(java.awt.image.ImageConsumer consumer)
startProduction
in interface java.awt.image.ImageProducer
addConsumer(java.awt.image.ImageConsumer)
public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer consumer)
requestTopDownLeftRightResend
in interface java.awt.image.ImageProducer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |