The ImageKit Scan interface exposes properties and methods for retrieving images from scan devices and digital cameras.
The ways in which the ImageKit8 retrieves images:
Scan Device or Camera | Scan Results | Scan Mode |
---|---|---|
Image scanner (document plate) | Scans single images | Can scan using manufacturer's user interface or using a customer interface |
Image scanner (ADF) | Scans multiple images | Can scan using manufacturer's user interface or using a customer interface |
Digital camera | Scans multiple images | Can scan using manufacturer's user interface or using a customer interface |
Film scanner | Scans multiple images | Can scan using manufacturer's user interface only |
Order for executing scan methods:
[LoadTwain]
|
Initialize (Necessary)
|
GetDSInfo, List, Select
|
[OpenDS]
|
GetBitDepth, GetCapEnum, GetCapRange,
GetPhysicalSize, GetMinimumSize, IsCapSupported
|
Exec
|
[CloseDS]
|
Terminate (Necessary)
|
[FreeTwain]
Important:
Although it is not necessary to execute the LoadTwain/FreeTwain or
the OpenDS/CloseDS method pairs, it is highly recommended that you
do so.
Aside from the LoadTwain/FreeTwain and the Initialize/Terminate
method pairs, the order that you execute other methods is not so
important. In general, you can execute any methods in any
order that is necessary. However, the LoadTwain/FreeTwain and the
Initialize/Terminate method pairs must be executed in the order
presented above. Furthermore, if the OpenDS/CloseDS method pair is
also used, then the scanning methods you execute must be done so
after the OpenDS method. Please refer to the scan order shown
above.
Property List
Custom Properties | Explanation |
---|---|
AdjustGamma | Sets the gamma adjustment coefficient |
BitDepth | Sets the number of bits per pixel in the scanned image |
BitDepthReduction | Sets the method used to reduce the bit depth when scanning in 1 bit color |
BorderDetection | Enables automatic border detection |
Brightness | Sets the scan brightness. |
Cancel | Sets whether or not the scan process is canceled |
ColorBWRatio | Sets the allowable ratio of color pixels in a document for the scanner to scan in black and white. |
Compression | Sets the compression method used when an image is transferred via memory |
Contrast | Sets the scan contrast |
Deskew | Sets whether or not deskew is enabled |
DropoutColor | Sets the dropout color |
DsName | Sets the name of the scan device |
DsNameCount | Refers to the number of scan devices retrieved by the List method |
DsNameList | Refers to the list of scan devices retrieved by the List method |
DynamicThreshold | Sets the dynamic threshold level |
ExtUiMode | Sets whether or not the extended user interface is used |
FileFormat | Sets the file format when saving a file using file transfer. |
FileName | Sets the file name when saving a file using file transfer or using memory transfer with compression. |
FocusPosition | Sets the focus position |
Gamma | Sets the gamma correction |
HalfTone | Sets the halftone. |
HalfToneList | Refers to the halftone list that is retrieved by the GetCapEnum or the GetCapEnumVariant method |
Highlight | Sets the scanning highlight |
IgnoreBackColor | Sets whether or not the background color of the document is ignored when automatically determining whether to scan in black and white or in color |
ImageFilter | Sets the image filter |
Indicator | Sets whether or not the indicator is displayed when scanning |
InformationFileName | Sets the filename and path were the information file is saved |
JpegQuality | Sets the JpegQuality when using file or memory transfer with JPEG compression. |
Manufacturer | Refers to to the scan device manufacturer's name |
MoireFilter | Sets the level for the Moire filter |
NoiseFilter | Sets the noise reduction filter |
Orientation | Sets the orientation of the paper |
OverScan | Sets how over scanning is handled |
PageCount | Sets the number of images to be scanned |
PaperSize | Sets the size of the paper |
PixelType | Sets the type of image scanned |
ProductFamily | Refers to the scan device product family name |
ProductName | Refers to the scan device product name |
ProtocolMajor | Refers to the TWAIN Major version number |
ProtocolMinor | Refers to the TWAIN minor version number |
RangeCurrent | Refers to the current setting for a specified functionality |
RangeDefault | Refers to the default setting for a specified functionality |
RangeMax | Refers to the maximum setting for a specified functionality |
RangeMin | Refers to the minimum setting for a specified functionality |
RangeStep | Refers to a range of possible setting values for the specified functionality |
RectBottom | Sets the bottom position of the area on the image to be scanned |
RectLeft | Sets the left position of the area on the image to be scanned |
RectRight | Sets the right position of the area on the image to be scanned |
RectTop | Sets the top position of the area on the image to be scanned |
RemoveHole | Sets how punch holes are handled |
RotateBack | Sets whether or not the back side of the page is rotated when scanning on both sides using an ADF |
Rotation | Sets the angle of rotation for the image |
ScanCount | Refers to the number of images that have been scanned |
ScanMode | Sets the scanning mode |
ScanningSpeed | Increases the speed at which a document is scanned |
Shadow | Sets the shadow |
Sharpness | Sets the level of sharpness |
SkipBlankPage | Sets how blank pages are handled |
SkipBlankThreshold | Sets the threshold for determining if a page is blank and whether it will be skipped |
SourceMajor | Refers to the major version number of the scan device |
SourceMinor | Refers to the minor version number of the scan device |
SourceVersionInfo | Refers to the scan device's version information |
TextEnhancement | Sets the text enhancement |
Threshold | Sets the scanning threshold |
TransferMode | Sets whether native, file, or memory transfer is used |
UiMode | Sets whether the scan driver's user interface is used or if a custom built user interface is used. |
UnitFlag | Sets whether the scan units are determined by the scan device or by the ImageKit |
UnitMode | Sets the units of measurement |
XResolution | Sets the horizontal scan resolution |
XScaling | Sets the horizontal scaling (magnification) |
YResolution | Sets the vertical scan resolution |
YScaling | Sets the vertical scaling (magnification) |
Method List
Custom Method | Explanation |
---|---|
ClearProperty | Resets the scan control properties |
CloseDS | Closes the scan device |
Exec | Retrieves an image from a TWAIN scan device |
ExecVariant | Retrieves an image from a TWAIN scan device. Recommended when using scripting or other languages that require variant types |
FreeTwain | Frees the TWAIN DLL |
GetBitDepth | Retrieves the bit depth supported by the scan device |
GetBitDepthVariant | Retrieves the bit depth supported by the scan device. Recommended when using scripting or other languages that require variant types |
GetCapEnum | Retrieves the possible setting values for a specified property of the scan device |
GetCapEnumVariant | Retrieves the possible setting values for a specified property of the scan device. Recommended when using scripting or other languages that require variant types |
GetCapRange | Retrieves the range of possible setting values for a specified functionality of the scan device |
GetCapRangeVariant | Retrieves the range of possible setting values for a specified functionality of the scan device. Recommended when using scripting or other languages that require variant types |
GetDSInfo | retrieves information about the specified scan device, such as manufacturer, product name, etc |
GetMinimumSize | Retrieves the smallest size that can be scanned with a given scan device |
GetMinimumSizeVariant | Retrieves the smallest size that can be scanned with a given scan device. Recommended when using scripting or other languages that require variant types |
GetPhysicalSize | Retrieves the largest physical size that can be scanned with a given scan device |
GetPhysicalSizeVariant | Retrieves the largest physical size that can be scanned with a given scan device. Recommended when using scripting or other languages that require variant types |
Initialize | Starts the TWAIN process |
IsCapSupported | Confirms whether or not a functionality is supported by the scan device |
IsCapSupportedVariant | Confirms whether or not a functionality is supported by the scan device. Recommended when using scripting or other languages that require variant types |
IsOpenDS | Checks whether or not the scan device is open |
List | Lists the scan devices |
LoadTwain | Loads the TWAIN DLL |
OpenDS | Opens the scan device |
Select | Selects the scan device |
Terminate | Ends the TWAIN process |