UNPKG

dwt

Version:

Dynamic Web TWAIN is a TWAIN/ICA/SANE-based scanning SDK software specifically designed for web applications running on Windows/macOS/Linux. With just a few lines of code, you can develop robust applications to scan documents from TWAIN/ICA/SANE-compatibl

1,055 lines (1,053 loc) 75.3 kB
export namespace DynamsoftEnumsDBR { /** Barcode Format */ enum EnumBarcodeFormat { BF_ALL = -32505857, BF_AZTEC = 268435456, BF_CODABAR = 8, BF_CODE_39 = 1, BF_CODE_39_EXTENDED = 1024, BF_CODE_93 = 4, BF_CODE_128 = 2, BF_DATAMATRIX = 134217728, BF_EAN_8 = 64, BF_EAN_13 = 32, BF_GS1_COMPOSITE = -2147483648, BF_GS1_DATABAR = 260096, BF_GS1_DATABAR_EXPANDED = 32768, BF_GS1_DATABAR_EXPANDED_STACKED = 65536, BF_GS1_DATABAR_LIMITED = 131072, BF_GS1_DATABAR_OMNIDIRECTIONAL = 2048, BF_GS1_DATABAR_STACKED = 8192, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL = 16384, BF_GS1_DATABAR_TRUNCATED = 4096, BF_INDUSTRIAL_25 = 512, BF_ITF = 16, BF_MAXICODE = 536870912, BF_MICRO_PDF417 = 524288, BF_MICRO_QR = 1073741824, BF_NULL = 0, BF_ONED = 2047, BF_PATCHCODE = 262144, BF_PDF417 = 33554432, BF_QR_CODE = 67108864, BF_UPC_A = 128, BF_UPC_E = 256 } /** Barcode Format 2 */ enum EnumBarcodeFormat_2 { BF2_AUSTRALIANPOST = 8388608, BF2_DOTCODE = 2, BF2_NONSTANDARD_BARCODE = 1, BF2_NULL = 0, BF2_PLANET = 4194304, BF2_POSTALCODE = 32505856, BF2_POSTNET = 2097152, BF2_RM4SCC = 16777216, BF2_USPSINTELLIGENTMAIL = 1048576 } /** Barcode Color Mode */ enum EnumBarcodeColourMode { BICM_DARK_LIGHT_MIXED = 16, BICM_DARK_ON_DARK = 4, BICM_DARK_ON_LIGHT = 1, BICM_DARK_ON_LIGHT_DARK_SURROUNDING = 32, BICM_LIGHT_ON_DARK = 2, BICM_LIGHT_ON, _LIGHT = 8, BICM_SKIP = 0, } /** Barcode Complement Mode */ enum EnumBarcodeComplementMode { BCM_AUTO = 1, BCM_GENERAL = 2, BCM_SKIP = 0 } } export namespace DynamsoftEnumsDWT { /** OCR Languages */ enum EnumDWT_OCRLanguage { OCRL_ENG = "eng", OCRL_ARA = "ara", OCRL_CHI_SIM = "chi_sim", OCRL_CHI_TRA = "chi_tra", OCRL_HIN = "hin", OCRL_URD = "urd", OCRL_SPA = "spa", OCRL_FRA = "fra", OCRL_MSA = "msa", OCRL_IND = "ind", OCRL_RUS = "rus", OCRL_BEN = "ben", OCRL_POR = "por", OCRL_PAN = "pan", OCRL_DEU = "deu", OCRL_JPN = "jpn", OCRL_FAS = "fas", OCRL_SWA = "swa", OCRL_JAV = "jav", OCRL_TEL = "tel", OCRL_TUR = "tur", OCRL_KOR = "kor", OCRL_MAR = "mar", OCRL_TAM = "tam", OCRL_VIE = "vie", OCRL_ITA = "ita", OCRL_THA = "tha" } /** OCR PageSet Mode */ enum EnumDWT_OCRPageSetMode { OCRPSM_OSD_ONLY = 0, PSM_AUTO_OSD = 1, PSM_AUTO_ONLY = 2, PSM_AUTO = 3, PSM_SINGLE_COLUMN = 4, PSM_SINGLE_BLOCK_VERT_TEXT = 5, PSM_SINGLE_BLOCK = 6, PSM_SINGLE_LINE = 7, PSM_SINGLE_WORD = 8, PSM_CIRCLE_WORD = 9, PSM_SINGLE_CHAR = 10 } /** OCR Output Format */ enum EnumDWT_OCROutputFormat { OCROF_TEXT = 0, OCROF_PDFPLAINTEXT = 1, OCROF_PDFIMAGEOVERTEXT = 2, OCROF_PDFPLAINTEXT_PDFX = 3, OCROF_PDFIMAGEOVERTEXT_PDFX = 4 } /** OCR Download Type */ enum EnumDWT_OCRDownloadType { OCRDT_Dll = 0, OCRDT_LANGUAGE = 1 } /** OCRPro Reconnition module */ enum EnumDWT_OCRProRecognitionModule { OCRPM_AUTO = "AUTO", OCRPM_MOSTACCURATE = "MOSTACCURATE", OCRPM_BALANCED = "BALANCED", OCRPM_FASTEST = "FASTEST" } /** OCRPro Output Format */ enum EnumDWT_OCRProOutputFormat { OCRPFT_TXTS = "TXTS", OCRPFT_TXTCSV = "TXTCSV", OCRPFT_TXTF = "TXTF", OCRPFT_XML = "XML", OCRPFT_IOTPDF = "IOTPDF", OCRPFT_IOTPDF_MRC = "IOTPDF_MRC" } /** OCRPro PDF Version */ enum EnumDWT_OCRProPDFVersion { OCRPPDFV_0 = "1.0", OCRPPDFV_1 = "1.1", OCRPPDFV_2 = "1.2", OCRPPDFV_3 = "1.3", OCRPPDFV_4 = "1.4", OCRPPDFV_5 = "1.5", OCRPPDFV_6 = "1.6", OCRPPDFV_7 = "1.7" } /** OCRPro PDFA Version */ enum EnumDWT_OCRProPDFAVersion { OCRPPDFAV_1A = "pdf/a-1a", OCRPPDFAV_1B = "pdf/a-1b", OCRPPDFAV_2A = "pdf/a-2a", OCRPPDFAV_2B = "pdf/a-2b", OCRPPDFAV_2U = "pdf/a-2u", OCRPPDFAV_3A = "pdf/a-3a", OCRPPDFAV_3B = "pdf/a-3b", OCRPPDFAV_3U = "pdf/a-3u" } /** OCRPro Type */ enum EnumDWT_OCRProType { OCRDT_File = 0, OCRDT_Index = 1 } /** OCRPro Find Text Flags */ enum EnumDWT_OCRFindTextFlags { OCRFT_WHOLEWORD = 1, OCRFT_MATCHCASE = 2, OCRFT_FUZZYMATCH = 4 // OCRFT_BACKWARD= 8 } /** OCRPro Find Text Action */ enum EnumDWT_OCRFindTextAction { OCRFT_HIGHLIGHT = 0, OCRFT_STRIKEOUT = 1, OCRFT_MARKFORREDACT = 2 } enum EnumDWT_ConvertMode { CM_RENDERALL = 1, CM_IMAGEONLY = 2, CM_AUTO = 3, /* * @deprecated since version 18.4. This value will be removed in future versions. Use `ReaderOptions.renderOptions.renderAnnotations` instead. */ CM_RENDERALLWITHANNOTATION = 4 } enum EnumErrorCode { DBR_1D_LICENSE_INVALID = -10017, DBR_AZTEC_LICENSE_INVALID = -10041, DBR_BARCODE_FORMAT_INVALID = -10009, DBR_BPP_NOT_SUPPORTED = -10007, DBR_CUSTOM_MODULESIZE_INVALID = -10025, DBR_CUSTOM_REGION_INVALID = -10010, DBR_CUSTOM_SIZE_INVALID = -10024, DBR_DATAMATRIX_LICENSE_INVALID = -10020, DBR_DIB_BUFFER_INVALID = -10018, DBR_DOMAIN_NOT_MATCHED = -10039, DBR_DOTCODE_LICENSE_INVALID = -10061, DBR_DPM_LICENSE_INVALID = -10048, DBR_FILETYPE_NOT_SUPPORTED = -10006, DBR_FILE_NOT_FOUND = -10005, DBR_FRAME_DECODING_THREAD_EXISTS = -10049, DBR_GET_MODE_ARGUMENT_ERROR = -10055, DBR_GS1_COMPOSITE_LICENSE_INVALID = -10059, DBR_GS1_DATABAR_LICENSE_INVALID = -10058, DBR_IMAGE_READ_FAILED = -10012, DBR_INDEX_INVALID = -10008, DBR_IRT_LICENSE_INVALID = -10056, DBR_JSON_KEY_INVALID = -10032, DBR_JSON_NAME_KEY_MISSING = -10034, DBR_JSON_NAME_REFERENCE_INVALID = -10037, DBR_JSON_NAME_VALUE_DUPLICATED = -10035, DBR_JSON_PARSE_FAILED = -10030, DBR_JSON_TYPE_INVALID = -10031, DBR_JSON_VALUE_INVALID = -10033, DBR_LICENSEKEY_NOT_MATCHED = -10043, DBR_LICENSE_CONTENT_INVALID = -10052, DBR_LICENSE_DEVICE_RUNS_OUT = -10054, DBR_LICENSE_DLL_MISSING = -10042, DBR_LICENSE_EXPIRED = -10004, DBR_LICENSE_INIT_FAILED = -10045, DBR_LICENSE_INVALID = -10003, DBR_LICENSE_KEY_INVALID = -10053, DBR_MAXICODE_LICENSE_INVALID = -10057, DBR_MAX_BARCODE_NUMBER_INVALID = -10011, DBR_NO_MEMORY = -10001, DBR_NULL_REFERENCE = -10002, DBR_PAGE_NUMBER_INVALID = -10023, DBR_PARAMETER_VALUE_INVALID = -10038, DBR_PATCHCODE_LICENSE_INVALID = -10046, DBR_PDF417_LICENSE_INVALID = -10019, DBR_PDF_DLL_MISSING = -10022, DBR_PDF_READ_FAILED = -10021, DBR_POSTALCODE_LICENSE_INVALID = -10047, DBR_QR_LICENSE_INVALID = -10016, DBR_RECOGNITION_TIMEOUT = -10026, DBR_REQUESTED_FAILED = -10044, DBR_RESERVEDINFO_NOT_MATCHED = -10040, DBR_SET_MODE_ARGUMENT_ERROR = -10051, DBR_STOP_DECODING_THREAD_FAILED = -10050, DBR_SUCCESS = 0, DBR_SYSTEM_EXCEPTION = 1, DBR_TEMPLATE_NAME_INVALID = -10036, DBR_TIFF_READ_FAILED = -10013, DBR_UNKNOWN = -10000 } /** Specifies the video rotate mode on a video capture device. */ enum EnumDWT_VideoRotateMode { /** Don't rotate */ VRM_NONE = 0, /** 90 deg Clockwise */ VRM_90_DEGREES_CLOCKWISE = 1, /** 180 deg Clockwise */ VRM_180_DEGREES_CLOCKWISE = 2, /** 270 deg Clockwise */ VRM_270_DEGREES_CLOCKWISE = 3, /** Flip */ VRM_FLIP_VERTICAL = 4, /** Mirror */ VRM_FLIP_HORIZONTAL = 5 } /** Specifies video properties on a video capture device. */ enum EnumDWT_VideoProperty { /** * Specifies the brightness, also called the black level. * For NTSC, the value is expressed in IRE units * 100. * For non-NTSC sources, the units are arbitrary, with zero * representing blanking and 10,000 representing pure white. * Values range from -10,000 to 10,000. */ VP_BRIGHTNESS = 0, /** Specifies the contrast, expressed as gain factor * 100. Values range from zero to 10,000. */ VP_CONTRAST = 1, /** Specifies the hue, in degrees * 100. Values range from -180,000 to 180,000 (-180 to +180 degrees). */ VP_HUE = 2, /** Specifies the saturation. Values range from 0 to 10,000. */ VP_SATURATION = 3, /** Specifies the sharpness. Values range from 0 to 100. */ VP_SHARPNESS = 4, /** Specifies the gamma, as gamma * 100. Values range from 1 to 500. */ VP_GAMMA = 5, /** Specifies the color enable setting. The possible values are 0 (off) and 1 (on). */ VP_COLORENABLE = 6, /** Specifies the white balance, as a color temperature in degrees Kelvin. The range of values depends on the device. */ VP_WHITEBALANCE = 7, /** Specifies the backlight compensation setting. Possible values are 0 (off) and 1 (on). */ VP_BACKLIGHTCOMPENSATION = 8, /** * Specifies the gain adjustment. Zero is normal. * Positive values are brighter and negative values are darker. * The range of values depends on the device. */ VP_GAIN = 9 } /** Specifies a setting on a camera. */ enum EnumDWT_CameraControlProperty { /** * Specifies the camera's pan setting, in degrees. * Values range from -180 to +180, with the default set to zero. * Positive values are clockwise from the origin (the camera rotates clockwise when viewed from above), * and negative values are counterclockwise from the origin. */ CCP_PAN = 0, /** * Specifies the camera's tilt setting, in degrees. Values range from -180 to +180, with the default set to zero. * Positive values point the imaging plane up, and negative values point the imaging plane down. */ CCP_TILT = 1, /** * Specifies the camera's roll setting, in degrees. Values range from -180 to +180, with the default set to zero. * Positive values cause a clockwise rotation of the camera along the image-viewing axis, and negative values cause a counterclockwise rotation of the camera. */ CCP_ROLL = 2, /** Specifies the camera's zoom setting, in millimeters. Values range from 10 to 600, and the default is specific to the device. */ CCP_ZOOM = 3, /** * Specifies the exposure setting, in log base 2 seconds. In other words, for values less than zero, the exposure time is 1/2^n seconds, * and for values zero or above, the exposure time is 2^n seconds. For example= * Value Seconds * -3 1/8 * -2 1/4 * -1 1/2 * 0 1 * 1 2 * 2 4 */ CCP_EXPOSURE = 4, /** Specifies the camera's iris setting, in units of fstop* 10. */ CCP_IRIS = 5, /** * Specifies the camera's focus setting, as the distance to the optimally focused target, in millimeters. * The range and default value are specific to the device. */ CCP_FOCUS = 6 } /** Border Styles */ enum EnumDWT_BorderStyle { /** No border. */ TWBS_NONE = 0, /** Flat border. */ TWBS_SINGLEFLAT = 1, /** 3D border. */ TWBS_SINGLE3D = 2 } /** Capabilities */ enum EnumDWT_Cap { /** Nothing. */ CAP_NONE = 0, /** The application is willing to accept this number of images. */ CAP_XFERCOUNT = 1, /** * Allows the application and Source to identify which compression schemes they have in * common for Buffered Memory and File transfers. * Note for File transfers= * Since only certain file formats support compression, this capability must be negotiated after * setting the desired file format with ICAP_IMAGEFILEFORMAT. */ ICAP_COMPRESSION = 256, /** The type of pixel data that a Source is capable of acquiring (for example, black and white, gray, RGB, etc.). */ ICAP_PIXELTYPE = 257, /** * Unless a quantity is dimensionless or uses a specified unit of measure, ICAP_UNITS determines * the unit of measure for all quantities. */ ICAP_UNITS = 258, /** Allows the application and Source to identify which transfer mechanisms the source supports. */ ICAP_XFERMECH = 259, /** The name or other identifying information about the Author of the image. It may include a copyright string. */ CAP_AUTHOR = 4096, /** A general note about the acquired image. */ CAP_CAPTION = 4097, /** * If TRUE, Source must acquire data from the document feeder acquire area and other feeder * capabilities can be used. If FALSE, Source must acquire data from the non-feeder acquire area * and no other feeder capabilities can be used. */ CAP_FEEDERENABLED = 4098, /** Reflect whether there are documents loaded in the Source's feeder. */ CAP_FEEDERLOADED = 4099, /** * The date and time the image was acquired. * Stored in the form "YYYY/MM/DD HH=mm=SS.sss" where YYYY is the year, MM is the * numerical month, DD is the numerical day, HH is the hour, mm is the minute, SS is the second, * and sss is the millisecond. */ CAP_TIMEDATE = 4100, /** * Returns a list of all the capabilities for which the Source will answer inquiries. Does not indicate * which capabilities the Source will allow to be set by the application. Some capabilities can only * be set if certain setup work has been done so the Source cannot globally answer which * capabilities are "set-able." */ CAP_SUPPORTEDCAPS = 4101, /** Allows the application and Source to negotiate capabilities to be used in States 5 and 6. */ CAP_EXTENDEDCAPS = 4102, /** * If TRUE, the Source will automatically feed the next page from the document feeder after the * number of frames negotiated for capture from each page are acquired. CAP_FEEDERENABLED * must be TRUE to use this capability. */ CAP_AUTOFEED = 4103, /** * If TRUE, the Source will eject the current page being acquired from and will leave the feeder * acquire area empty. * If CAP_AUTOFEED is TRUE, a fresh page will be advanced. * CAP_FEEDERENABLED must equal TRUE to use this capability. * This capability must have been negotiated as an extended capability to be used in States 5 and 6. */ CAP_CLEARPAGE = 4104, /** * If TRUE, the Source will eject the current page and advance the next page in the document feeder * into the feeder acquire area. * If CAP_AUTOFEED is TRUE, the same action just described will occur and CAP_AUTOFEED will * remain active. * CAP_FEEDERENABLED must equal TRUE to use this capability. * This capability must have been negotiated as an extended capability to be used in States 5 and 6. */ CAP_FEEDPAGE = 4105, /** * If TRUE, the Source will return the current page to the input side of the document feeder and * feed the last page from the output side of the feeder back into the acquisition area. * If CAP_AUTOFEED is TRUE, automatic feeding will continue after all negotiated frames from this * page are acquired. * CAP_FEEDERENABLED must equal TRUE to use this capability. * This capability must have been negotiated as an extended capability to be used in States 5 and 6. */ CAP_REWINDPAGE = 4106, /** * If TRUE, the Source will display a progress indicator during acquisition and transfer, regardless * of whether the Source's user interface is active. If FALSE, the progress indicator will be * suppressed if the Source's user interface is inactive. * The Source will continue to display device-specific instructions and error messages even with * the Source user interface and progress indicators turned off. */ CAP_INDICATORS = 4107, /** * Returns a list of all the capabilities for which the Source will answer inquiries. Does not indicate * which capabilities the Source will allow to be set by the application. Some capabilities can only * be set if certain setup work has been done so the Source cannot globally answer which * capabilities are "set-able." */ CAP_SUPPORTEDCAPSEXT = 4108, /** This capability determines whether the device has a paper sensor that can detect documents on the ADF or Flatbed. */ CAP_PAPERDETECTABLE = 4109, /** * If TRUE, indicates that this Source supports acquisition with the UI disabled; i.e., * TW_USERINTERFACE's ShowUI field can be set to FALSE. If FALSE, indicates that this Source * can only support acquisition with the UI enabled. */ CAP_UICONTROLLABLE = 4110, /** * If TRUE, the physical hardware (e.g., scanner, digital camera, image database, etc.) that * represents the image source is attached, powered on, and communicating. */ CAP_DEVICEONLINE = 4111, /** * This capability is intended to boost the performance of a Source. The fundamental assumption * behind AutoScan is that the device is able to capture the number of images indicated by the * value of CAP_XFERCOUNT without waiting for the Application to request the image transfers. * This is only possible if the device has internal buffers capable of caching the images it captures. * The default behavior is undefined, because some high volume devices are incapable of anything * but CAP_AUTOSCAN being equal to TRUE. However, if a Source supports FALSE, it should use it * as the mandatory default, since this best describes the behavior of pre-1.8 TWAIN Applications. */ CAP_AUTOSCAN = 4112, /** * Allows an application to request the delivery of thumbnail representations for the set of images * that are to be delivered. * Setting CAP_THUMBNAILSENABLED to TRUE turns on thumbnail mode. Images transferred * thereafter will be sent at thumbnail size (exact thumbnail size is determined by the Data Source). * Setting this capability to FALSE turns thumbnail mode off and returns full size images. */ CAP_THUMBNAILSENABLED = 4113, /** * This indicates whether the scanner supports duplex. If so, it further indicates whether one-path * or two-path duplex is supported. */ CAP_DUPLEX = 4114, /** * The user can set the duplex option to be TRUE or FALSE. If TRUE, the scanner scans both sides * of a paper; otherwise, the scanner will scan only one side of the image. */ CAP_DUPLEXENABLED = 4115, /** Allows an application to query a source to see if it implements the new user interface settings dialog. */ CAP_ENABLEDSUIONLY = 4116, CAP_CUSTOMDSDATA = 4117, /** * Allows the application to specify the starting endorser / imprinter number. All other endorser/ * imprinter properties should be handled through the data source's user interface. * The user can set the starting number for the endorser. */ CAP_ENDORSER = 4118, /** Turns specific audible alarms on and off. */ CAP_ALARMS = 4120, /** * The volume of a device's audible alarm. Note that this control affects the volume of all alarms; * no specific volume control for individual types of alarms is provided. */ CAP_ALARMVOLUME = 4121, /** * The number of images to automatically capture. This does not refer to the number of images to * be sent to the Application, use CAP_XFERCOUNT for that. */ CAP_AUTOMATICCAPTURE = 4122, /** * For automatic capture, this value selects the number of milliseconds before the first picture is to * be taken, or the first image is to be scanned. */ CAP_TIMEBEFOREFIRSTCAPTURE = 4123, /** For automatic capture, this value selects the milliseconds to wait between pictures taken, or images scanned. */ CAP_TIMEBETWEENCAPTURES = 4124, /** CapGet() reports the presence of data in the scanner's buffers. CapSet() with a value of TWCB_CLEAR immediately clears the buffers. */ CAP_CLEARBUFFERS = 4125, /** Describes the number of pages that the scanner can buffer when CAP_AUTOSCAN is enabled. */ CAP_MAXBATCHBUFFERS = 4126, /** * The date and time of the device's clock. * Managed in the form "YYYY/MM/DD HH=mm=SS=sss" where YYYY is the year, MM is the * numerical month, DD is the numerical day, HH is the hour, mm is the minute, SS is the second, * and sss is the millisecond. */ CAP_DEVICETIMEDATE = 4127, /** CapGet() reports the kinds of power available to the device. CapGetCurrent() reports the current power supply in use. */ CAP_POWERSUPPLY = 4128, /** This capability queries the Source for UI support for preview mode. If TRUE, the Source supports preview UI. */ CAP_CAMERAPREVIEWUI = 4129, /** * A string containing the serial number of the currently selected device in the Source. Multiple * devices may all report the same serial number. */ CAP_SERIALNUMBER = 4132, /** * CapGet() returns the current list of available printer devices, along with the one currently being used for negotiation. * CapSet() selects the current device for negotiation, and optionally constrains the list. * Top/Bottom refers to duplex devices, and indicates if the printer is writing on the top or the bottom of the sheet of paper. * Simplex devices use the top settings. Before/After indicates whether printing occurs before or after the sheet of paper has been scanned. */ CAP_PRINTER = 4134, /** Turns the current CAP_PRINTER device on or off. */ CAP_PRINTERENABLED = 4135, /** The User can set the starting number for the current CAP_PRINTER device. */ CAP_PRINTERINDEX = 4136, /** * Specifies the appropriate current CAP_PRINTER device mode. * Note= * O TWPM_SINGLESTRING specifies that the printed text will consist of a single string. * O TWPM _MULTISTRING specifies that the printed text will consist of an enumerated list of * strings to be printed in order. * O TWPM _COMPOUNDSTRING specifies that the printed string will consist of a compound of a * String followed by a value followed by a suffix string. */ CAP_PRINTERMODE = 4137, /** * Specifies the string(s) that are to be used in the string component when the current * CAP_PRINTER device is enabled. */ CAP_PRINTERSTRING = 4138, /** Specifies the string that shall be used as the current CAP_PRINTER device's suffix. */ CAP_PRINTERSUFFIX = 4139, /** * Allows Application and Source to identify which languages they have in common for the exchange of string data, * and to select the language of the internal UI. Since the TWLG_xxxx codes include language and country data, there is no separate * capability for selecting the country. */ CAP_LANGUAGE = 4140, /** * Helps the Application determine any special actions it may need to take when negotiating * frames with the Source. Allowed values are listed in <see cref="TWCapFeederAlignment"/>. * TWFA_NONE= The alignment is free-floating. Applications should assume * that the origin for frames is on the left. * TWFA_LEFT= The alignment is to the left. * TWFA_CENTER= The alignment is centered. This means that the paper will * be fed in the middle of the ICAP_PHYSICALWIDTH of the * device. If this is set, then the Application should calculate * any frames with a left offset of zero. * TWFA_RIGHT= The alignment is to the right. */ CAP_FEEDERALIGNMENT = 4141, /** * TWFO_FIRSTPAGEFIRST if the feeder starts with the top of the first page. * TWFO_LASTPAGEFIRST is the feeder starts with the top of the last page. */ CAP_FEEDERORDER = 4142, /** * Indicates whether the physical hardware (e.g. scanner, digital camera) is capable of acquiring * multiple images of the same page without changes to the physical registration of that page. */ CAP_REACQUIREALLOWED = 4144, /** The minutes of battery power remaining to the device. */ CAP_BATTERYMINUTES = 4146, /** When used with CapGet(), return the percentage of battery power level on camera. If -1 is returned, it indicates that the battery is not present. */ CAP_BATTERYPERCENTAGE = 4147, /** Added 1.91 */ CAP_CAMERASIDE = 4148, /** Added 1.91 */ CAP_SEGMENTED = 4149, /** Added 2.0 */ CAP_CAMERAENABLED = 4150, /** Added 2.0 */ CAP_CAMERAORDER = 4151, /** Added 2.0 */ CAP_MICRENABLED = 4152, /** Added 2.0 */ CAP_FEEDERPREP = 4153, /** Added 2.0 */ CAP_FEEDERPOCKET = 4154, /** Added 2.1 */ CAP_AUTOMATICSENSEMEDIUM = 4155, /** Added 2.1 */ CAP_CUSTOMINTERFACEGUID = 4156, /** TRUE enables and FALSE disables the Source's Auto-brightness function (if any). */ ICAP_AUTOBRIGHT = 4352, /** The brightness values available within the Source. */ ICAP_BRIGHTNESS = 4353, /** The contrast values available within the Source. */ ICAP_CONTRAST = 4355, /** Specifies the square-cell halftone (dithering) matrix the Source should use to halftone the image. */ ICAP_CUSTHALFTONE = 4356, /** Specifies the exposure time used to capture the image, in seconds. */ ICAP_EXPOSURETIME = 4357, /** * Describes the color characteristic of the subtractive filter applied to the image data. * Multiple filters may be applied to a single acquisition. */ ICAP_FILTER = 4358, /** Specifies whether or not the image was acquired using a flash. */ ICAP_FLASHUSED = 4359, /** Gamma correction value for the image data. */ ICAP_GAMMA = 4360, /** A list of names of the halftone patterns available within the Source. */ ICAP_HALFTONES = 4361, /** * Specifies which value in an image should be interpreted as the lightest "highlight." All values * "lighter" than this value will be clipped to this value. Whether lighter values are smaller or * larger can be determined by examining the Current value of ICAP_PIXELFLAVOR. */ ICAP_HIGHLIGHT = 4362, /** * Informs the application which file formats the Source can generate (CapGet()). Tells the Source which file formats the application can handle (CapSet()). * TWFF_TIFF Used for document * TWFF_PICT Native Macintosh * TWFF_BMP Native Microsoft * TWFF_XBM Used for document * TWFF_JFIF Wrapper for JPEG * TWFF_FPX FlashPix, used with digital * TWFF_TIFFMULTI Multi-page TIFF files * TWFF_PNG An image format standard intended for use on the web, replaces GIF * TWFF_SPIFF A standard from JPEG, intended to replace JFIF, also supports JBIG * TWFF_EXIF File format for use with digital cameras. */ ICAP_IMAGEFILEFORMAT = 4364, /** TRUE means the lamp is currently, or should be set to ON. Sources may not support CapSet() operations. */ ICAP_LAMPSTATE = 4365, /** Describes the general color characteristic of the light source used to acquire the image. */ ICAP_LIGHTSOURCE = 4366, /** * Defines which edge of the "paper" the image's "top" is aligned with. This information is used to adjust the frames to match the * scanning orientation of the paper. For instance, if an ICAP_SUPPORTEDSIZE of TWSS_ISOA4 has been negotiated, * and ICAP_ORIENTATION is set to TWOR_LANDSCAPE, then the Source must rotate the frame it downloads to the scanner to reflect the * orientation of the paper. Please note that setting ICAP_ORIENTATION does not affect the values reported by ICAP_FRAMES; * it just causes the Source to use them in a different way. The upper-left of the image is defined as the location where both the primary and * secondary scans originate. (The X axis is the primary scan direction and the Y axis is the secondary scan direction.) * For a flatbed scanner, the light bar moves in the secondary scan direction. For a handheld scanner, the scanner is drug in the * secondary scan direction. For a digital camera, the secondary direction is the vertical axis when the viewed image is considered upright. */ ICAP_ORIENTATION = 4368, /** The maximum physical width (X-axis) the Source can acquire (measured in units of ICAP_UNITS). */ ICAP_PHYSICALWIDTH = 4369, /** The maximum physical height (Y-axis) the Source can acquire (measured in units of ICAP_UNITS). */ ICAP_PHYSICALHEIGHT = 4370, /** * Specifies which value in an image should be interpreted as the darkest "shadow." All values * "darker" than this value will be clipped to this value. */ ICAP_SHADOW = 4371, /** The list of frames the Source will acquire on each page. */ ICAP_FRAMES = 4372, /** * The native optical resolution along the X-axis of the device being controlled by the Source. Most * devices will respond with a single value (TW_ONEVALUE). * This is NOT a list of all resolutions that can be generated by the device. Rather, this is the * resolution of the device's optics. Measured in units of pixels per unit as defined by * ICAP_UNITS (pixels per TWUN_PIXELS yields dimensionless data). */ ICAP_XNATIVERESOLUTION = 4374, /** * The native optical resolution along the Y-axis of the device being controlled by the Source. * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS * yields dimensionless data). */ ICAP_YNATIVERESOLUTION = 4375, /** * All the X-axis resolutions the Source can provide. * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS * yields dimensionless data). That is, when the units are TWUN_PIXELS, both * ICAP_XRESOLUTION and ICAP_YRESOLUTION shall report 1 pixel/pixel. Some data sources * like to report the actual number of pixels that the device reports, but that response is more * appropriate in ICAP_PHYSICALHEIGHT and ICAP_PHYSICALWIDTH. */ ICAP_XRESOLUTION = 4376, /** * All the Y-axis resolutions the Source can provide. * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS * yields dimensionless data). That is, when the units are TWUN_PIXELS, both * ICAP_XRESOLUTION and ICAP_YRESOLUTION shall report 1 pixel/pixel. Some data sources * like to report the actual number of pixels that the device reports, but that response is more * appropriate in ICAP_PHYSICALHEIGHT and ICAP_PHYSICALWIDTH. */ ICAP_YRESOLUTION = 4377, /** * The maximum number of frames the Source can provide or the application can accept per page. * This is a bounding capability only. It does not establish current or future behavior. */ ICAP_MAXFRAMES = 4378, /** This is used with buffered memory transfers. If TRUE, Source can provide application with tiled image data. */ ICAP_TILES = 4379, /** * Specifies how the bytes in an image are filled by the Source. TWBO_MSBFIRST indicates that the leftmost bit in the byte (usually bit 7) is * the byte's Most Significant Bit. */ ICAP_BITORDER = 4380, /** * Used for CCITT Group 3 2-dimensional compression. The 'K' factor indicates how often the * new compression baseline should be re-established. A value of 2 or 4 is common in facsimile * communication. A value of zero in this field will indicate an infinite K factor—the baseline is * only calculated at the beginning of the transfer. */ ICAP_CCITTKFACTOR = 4381, /** Describes whether the image was captured transmissively or reflectively. */ ICAP_LIGHTPATH = 4382, /** Sense of the pixel whose numeric value is zero (minimum data value). */ ICAP_PIXELFLAVOR = 4383, /** * Allows the application and Source to identify which color data formats are available. There are * two options, "planar" and "chunky." */ ICAP_PLANARCHUNKY = 4384, /** * How the Source can/should rotate the scanned image data prior to transfer. This doesn't use * ICAP_UNITS. It is always measured in degrees. Any applied value is additive with any * rotation specified in ICAP_ORIENTATION. */ ICAP_ROTATION = 4385, /** * For devices that support fixed frame sizes. * Defined sizes match typical page sizes. This specifies the size(s) the Source can/should use to acquire image data. */ ICAP_SUPPORTEDSIZES = 4386, /** * Specifies the dividing line between black and white. This is the value the Source will use to * threshold, if needed, when ICAP_PIXELTYPE=TWPT_BW. * The value is normalized so there are no units of measure associated with this ICAP. */ ICAP_THRESHOLD = 4387, /** * All the X-axis scaling values available. A value of '1.0' is equivalent to 100% scaling. * Do not use values less than or equal to zero. */ ICAP_XSCALING = 4388, /** * All the Y-axis scaling values available. A value of '1.0' is equivalent to 100% scaling. Do not use values less than or equal to zero. * There are no units inherent with this data as it is normalized to 1.0 being "unscaled." */ ICAP_YSCALING = 4389, /** Used for CCITT data compression only. Indicates the bit order representation of the stored compressed codes. */ ICAP_BITORDERCODES = 4390, /** * Used only for CCITT data compression. Specifies whether the compressed codes' pixel "sense" * will be inverted from the Current value of ICAP_PIXELFLAVOR prior to transfer. */ ICAP_PIXELFLAVORCODES = 4391, /** * Allows the application and Source to agree upon a common set of color descriptors that are * made available by the Source. This ICAP is only useful for JPEG-compressed buffered memory image transfers. */ ICAP_JPEGPIXELTYPE = 4392, /** Used only with CCITT data compression. Specifies the minimum number of words of compressed codes (compressed data) to be transmitted per line. */ ICAP_TIMEFILL = 4394, /** * Specifies the pixel bit depths for the Current value of ICAP_PIXELTYPE. For example, when * using ICAP_PIXELTYPE=TWPT_GRAY, this capability specifies whether this is 8-bit gray or 4-bit gray. * This depth applies to all the data channels (for instance, the R, G, and B channels will all have * this same bit depth for RGB data). */ ICAP_BITDEPTH = 4395, /** * Specifies the Reduction Method the Source should use to reduce the bit depth of the data. Most * commonly used with ICAP_PIXELTYPE=TWPT_BW to reduce gray data to black and white. */ ICAP_BITDEPTHREDUCTION = 4396, /** * If TRUE the Source will issue a MSG_XFERREADY before starting the scan. * Note= The Source may need to scan the image before initiating the transfer. * This is the case if the scanned image is rotated or merged with another scanned image. */ ICAP_UNDEFINEDIMAGESIZE = 4397, /** * Allows the application to query the data source to see if it supports extended image attribute capabilities, * such as Barcode Recognition, Shaded Area Detection and Removal, Skew detection and Removal, and so on. */ ICAP_EXTIMAGEINFO = 4399, /** Allows the source to define the minimum height (Y-axis) that the source can acquire. */ ICAP_MINIMUMHEIGHT = 4400, /** Allows the source to define theminimum width (X-axis) that the source can acquire. */ ICAP_MINIMUMWIDTH = 4401, /** * Use this capability to have the Source discard blank images. The Application never sees these * images during the scanning session. * TWBP_DISABLE – this must be the default state for the Source. It indicates that all images will * be delivered to the Application, none of them will be discarded. * TWBP_AUTO – if this is used, then the Source will decide if an image is blank or not and discard * as appropriate. * If the specified value is a positive number in the range 0 to 231–1, then this capability will use it * as the byte size cutoff point to identify which images are to be discarded. If the size of the image * is less than or equal to this value, then it will be discarded. If the size of the image is greater * than this value, then it will be kept so that it can be transferred to the Application. */ ICAP_AUTODISCARDBLANKPAGES = 4404, /** * Flip rotation is used to properly orient images that flip orientation every other image. * TWFR_BOOK The images to be scanned are viewed in book form, flipping each page from left to right or right to left. * TWFR_FANFOLD The images to be scanned are viewed in fanfold paper style, flipping each page up or down. */ ICAP_FLIPROTATION = 4406, /** Turns bar code detection on and off. */ ICAP_BARCODEDETECTIONENABLED = 4407, /** Provides a list of bar code types that can be detected by the current Data Source. */ ICAP_SUPPORTEDBARCODETYPES = 4408, /** The maximum number of supported search priorities. */ ICAP_BARCODEMAXSEARCHPRIORITIES = 4409, /** A prioritized list of bar code types dictating the order in which bar codes will be sought. */ ICAP_BARCODESEARCHPRIORITIES = 4410, /** Restricts bar code searching to certain orientations, or prioritizes one orientation over the other. */ ICAP_BARCODESEARCHMODE = 4411, /** Restricts the number of times a search will be retried if none are found on each page. */ ICAP_BARCODEMAXRETRIES = 4412, /** Restricts the total time spent on searching for a bar code on each page. */ ICAP_BARCODETIMEOUT = 4413, /** When used with CapGet(), returns all camera supported lens zooming range. */ ICAP_ZOOMFACTOR = 4414, /** Turns patch code detection on and off. */ ICAP_PATCHCODEDETECTIONENABLED = 4415, /** A list of patch code types that may be detected by the current Data Source. */ ICAP_SUPPORTEDPATCHCODETYPES = 4416, /** The maximum number of supported search priorities. */ ICAP_PATCHCODEMAXSEARCHPRIORITIES = 4417, /** A prioritized list of patch code types dictating the order in which patch codes will be sought. */ ICAP_PATCHCODESEARCHPRIORITIES = 4418, /** Restricts patch code searching to certain orientations, or prioritizes one orientation over the other. */ ICAP_PATCHCODESEARCHMODE = 4419, /** Restricts the number of times a search will be retried if none are found on each page. */ ICAP_PATCHCODEMAXRETRIES = 4420, /** Restricts the total time spent on searching for a patch code on each page. */ ICAP_PATCHCODETIMEOUT = 4421, /** * For devices that support flash. CapSet() selects the flash to be used (if any). CapGet() reports the current setting. * This capability replaces ICAP_FLASHUSED, which is only able to negotiate the flash being on or off. */ ICAP_FLASHUSED2 = 4422, /** For devices that support image enhancement filtering. This capability selects the algorithm used to improve the quality of the image. */ ICAP_IMAGEFILTER = 4423, /** For devices that support noise filtering. This capability selects the algorithm used to remove noise. */ ICAP_NOISEFILTER = 4424, /** * Overscan is used to scan outside of the boundaries described by ICAP_FRAMES, and is used to help acquire image data that * may be lost because of skewing. * This is primarily of use for transport scanners which rely on edge detection to begin scanning. * If overscan is supported, then the device is capable of scanning in the inter-document gap to get the skewed image information. */ ICAP_OVERSCAN = 4425, /** Turns automatic border detection on and off. */ ICAP_AUTOMATICBORDERDETECTION = 4432, /** Turns automatic deskew correction on and off. */ ICAP_AUTOMATICDESKEW = 4433, /** * When TRUE this capability depends on intelligent features within the Source to automatically * rotate the image to the correct position. */ ICAP_AUTOMATICROTATE = 4434, /** Added 1.9 */ ICAP_JPEGQUALITY = 4435, /** Added 1.91 */ ICAP_FEEDERTYPE = 4436, /** Added 1.91 */ ICAP_ICCPROFILE = 4437, /** Added 2.0 */ ICAP_AUTOSIZE = 4438, /** Added 2.1 */ ICAP_AUTOMATICCROPUSESFRAME = 4439, /** Added 2.1 */ ICAP_AUTOMATICLENGTHDETECTION = 4440, /** Added 2.1 */ ICAP_AUTOMATICCOLORENABLED = 4441, /** Added 2.1 */ ICAP_AUTOMATICCOLORNONCOLORPIXELTYPE = 4442, /** Added 2.1 */ ICAP_COLORMANAGEMENTENABLED = 4443, /** Added 2.1 */ ICAP_IMAGEMERGE = 4444, /** Added 2.1 */ ICAP_IMAGEMERGEHEIGHTTHRESHOLD = 4445, /** Added 2.1 */ ICAP_SUPPORTEDEXTIMAGEINFO = 4446 } /** ICAP_BITORDER values. */ enum EnumDWT_CapBitOrder { TWBO_LSBFIRST = 0, /** Indicates that the leftmost bit in the byte (usually bit 7) is the byte's Most Significant Bit. */ TWBO_MSBFIRST = 1 } /** ICAP_BITDEPTHREDUCTION values. */ enum EnumDWT_CapBitdepthReduction { TWBR_THRESHOLD = 0, TWBR_HALFTONE = 1, TWBR_CUSTHALFTONE = 2, TWBR_DIFFUSION = 3 } /** CAP_FEEDERALIGNMENT values. */ enum EnumDWT_CapFeederAlignment { /** The alignment is free-floating. Applications should assume that the origin for frames is on the left. */ TWFA_NONE = 0, /** The alignment is to the left. */ TWFA_LEFT = 1, /** * The alignment is centered. This means that the paper will be fed in the middle of * the ICAP_PHYSICALWIDTH of the device. If this is set, then the Application should * calculate any frames with a left offset of zero. */ TWFA_CENTER = 2, /** The alignment is to the right. */ TWFA_RIGHT = 3 } /** CAP_FEEDERORDER values. */ enum EnumDWT_CapFeederOrder { /** The feeder starts with the top of the first page. */ TWFO_FIRSTPAGEFIRST = 0, /** The feeder starts with the top of the last page. */ TWFO_LASTPAGEFIRST = 1 } /** ICAP_FILTER values. */ enum EnumDWT_CapFilterType { TWFT_RED = 0, TWFT_GREEN = 1, TWFT_BLUE = 2, TWFT_NONE = 3, TWFT_WHITE = 4, TWFT_CYAN = 5, TWFT_MAGENTA = 6, TWFT_YELLOW = 7, TWFT_BLACK = 8 } /** ICAP_FLASHUSED2 values. */ enum EnumDWT_CapFlash { TWFL_NONE = 0, TWFL_OFF = 1, TWFL_ON = 2, TWFL_AUTO = 3, TWFL_REDEYE = 4 } /** ICAP_FLIPROTATION values. */ enum EnumDWT_CapFlipRotation { /** The images to be scanned are viewed in book form, flipping each page from left to right or right to left. */ TWFR_BOOK = 0, /** The images to be scanned are viewed in fanfold paper style, flipping each page up or down. */ TWFR_FANFOLD = 1 } /** ICAP_IMAGEFILTER values. */ enum EnumDWT_CapImageFilter { TWIF_NONE = 0, TWIF_AUTO = 1, /** Good for halftone images. */ TWIF_LOWPASS = 2, /** Good for improving text. */ TWIF_BANDPASS = 3, /** Good for improving fine lines. */ TWIF_HIGHPASS = 4, TWIF_TEXT = 3, TWIF_FINELINE = 4 } /** CAP_LANGUAGE values. */ enum EnumDWT_CapLanguage { /** Danish */ TWLG_DAN = 0, /** Dutch */ TWLG_DUT = 1, /** International English */ TWLG_ENG = 2, /** French Canadian */ TWLG_FCF = 3, /** Finnish */ TWLG_FIN = 4, /** French */ TWLG_FRN = 5, /** German */ TWLG_GER = 6, /** Icelandic */ TWLG_ICE = 7, /** Italian */ TWLG_ITN = 8, /** Norwegian */ TWLG_NOR = 9, /** Portuguese */ TWLG_POR = 10, /** Spanish */ TWLG_SPA = 11, /** Swedish */ TWLG_SWE = 12, /** U.S. English */ TWLG_USA = 13, /** Added for 1.8 */ TWLG_USERLOCALE = -1, TWLG_AFRIKAANS = 14, TWLG_ALBANIA = 15, TWLG_ARABIC = 16, TWLG_ARABIC_ALGERIA = 17, TWLG_ARABIC_BAHRAIN = 18, TWLG_ARABIC_EGYPT = 19, TWLG_ARABIC_IRAQ = 20, TWLG_ARABIC_JORDAN = 21, TWLG_ARABIC_KUWAIT = 22, TWLG_ARABIC_LEBANON = 23, TWLG_ARABIC_LIBYA = 24, TWLG_ARABIC_MOROCCO = 25, TWLG_ARABIC_OMAN = 26, TWLG_ARABIC_QATAR = 27, TWLG_ARABIC_SAUDIARABIA = 28, TWLG_ARABIC_SYRIA = 29, TWLG_ARABIC_TUNISIA = 30, /** United Arabic Emirates */ TWLG_ARABIC_UAE = 31, TWLG_ARABIC_YEMEN = 32, TWLG_BASQUE = 33, TWLG_BYELORUSSIAN = 34, TWLG_BULGARIAN = 35, TWLG_CATALAN = 36, TWLG_CHINESE = 37, TWLG_CHINESE_HONGKONG = 38, /** People's Republic of China */ TWLG_CHINESE_PRC = 39, TWLG_CHINESE_SINGAPORE = 40, TWLG_CHINESE_SIMPLIFIED = 41, TWLG_CHINESE_TAIWAN = 42, TWLG_CHINESE_TRADITIONAL = 43, TWLG_CROATIA = 44, TWLG_CZECH = 45, TWLG_DANISH = 0, TWLG_DUTCH = 1, TWLG_DUTCH_BELGIAN = 46, TWLG_ENGLISH = 2, TWLG_ENGLISH_AUSTRALIAN = 47, TWLG_ENGLISH_CANADIAN = 48, TWLG_ENGLISH_IRELAND