Device Methods |
The Device type exposes the following members.
Name | Description | |
---|---|---|
Acquire | Acquires an image from this device. | |
CanOpen | Obsolete. | |
ClearBuffers | This lets you choose how the device should handle its buffer clearing procedure. | |
Close | Closes the connection with the device previously opened. Calling this method when an image is being acquired will cancel the acquisition and any pending transfers. If you want to close the connection after all images have been transferred, you should do so in the AcquireFinished event. | |
Disable | This method will disable and hide the device interface. This only needs to be called if the Enable() method is used to display the interface or invoke scanning. | |
Dispose | Releases resources used by the device when created from the CreateDeviceSession(String)
method. This should not be used for Device objects in the DeviceCollection. | |
Enable | This method can be used to display the device interface and invoke an acquisition instead of using Acquire(). | |
EnableCamera | Use this method to enable or disable cameras used when scanning. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Calls Close() (Overrides Object.Finalize().) | |
GetConditionCode | Returns the condition code from the last Twain operation. This can provide more information about a
failure when getting or setting a Device property. | |
GetFrames | Returns an array containing the current frames set for a device. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetQueryOperations | Returns the operations supported for a specific capability. | |
GetSupportedBarCodes | Returns the barcodes supported by the device. | |
GetSupportedBitDepthReductionModes | Returns the BitDepthReductionModes supported by the device. | |
GetSupportedBitDepths | Returns the supported bit depth values for the current PixelType. | |
GetSupportedBrightnessValues | Returns the brightness values supported by the device. | |
GetSupportedCapabilities | Returns a list of all the capabilities for which the Source will answer inquiries. | |
GetSupportedCompressionModes | Returns the supported compression modes for this device. | |
GetSupportedContrastValues | Returns the contrast values supported by the device. | |
GetSupportedExposureTimes | Returns an array of exposure times supported by the device. | |
GetSupportedExtendedCapabilities | Returns the extended capabilities supported by the device. | |
GetSupportedFlashModes | Returns the flash modes supported by the device. | |
GetSupportedFrameSizes | Returns the frame sizes supported by the device. | |
GetSupportedHalftones | Returns the halftone values supported by the device. | |
GetSupportedHighlightValues | Returns the highlight values supported by the device. | |
GetSupportedIccProfileOptions | Returns an array of TwainIccProfileOption values indicating what type of ICC profiles are
supported by the device. | |
GetSupportedImageFilters | Returns the image filters supported by the device. | |
GetSupportedImageFormats | Returns a list of the file formats supported by this device. | |
GetSupportedJobControls | Returns the job controls supported by the device. | |
GetSupportedJpegPixelTypes | Returns the Jpeg pixel types supported by the device. | |
GetSupportedJpegQualityValues | Returns the Jpeg quality values supported by the device. | |
GetSupportedLanguageTypes | Returns the language types supported by the device. | |
GetSupportedLightPathModes | Returns the light path modes supported by the device. | |
GetSupportedLightSourceModes | Returns the light source modes supported by the device. | |
GetSupportedMaxBatchBuffers | Returns the supported maximum batch buffers for the device. | |
GetSupportedNativeResolutions | Returns the native resolution values for the device. | |
GetSupportedNoiseFilterModes | Returns the noise filter modes supported by the device. | |
GetSupportedOrientationModes | Returns the orientation modes supported by the device. | |
GetSupportedOverscanModes | Returns the overscan modes supported by the device. | |
GetSupportedPatchCodes | Returns the patchcodes supported by the device. | |
GetSupportedPixelTypes | Returns the pixel types supported by the device. | |
GetSupportedPowerSupplies | Returns the supported power supplies for the device. | |
GetSupportedPrinterModes | Returns the printer modes supported by the device. | |
GetSupportedPrinters | Finds the type of imprinter or endorser supported by this device. These can be used to set which
imprinter or endorser to use in the SetImprinterEndorser() method. | |
GetSupportedResolutions | Returns supported resolution values for the device. | |
GetSupportedRotations | Returns the rotations supported by the device. | |
GetSupportedScalingValues | Returns scaling values supported by the device. | |
GetSupportedShadowValues | Returns the shadow values supported by the device. | |
GetSupportedThresholdValues | Returns the threshold values supported by the device. | |
GetSupportedTransferMethods | Returns the transfer methods supported by the device. | |
GetSupportedUnitTypes | Returns the unit values supported by the device. | |
GetSupportedZoomFactors | Returns an array of valid zoom factors for this device. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadParameters | Loads previously saved device parameters into the device. | |
LoadXmlParameters | Load device parameter data saved with the SaveXmlParameters(Stream) method. | |
Open | Opens a connection to this device. You must open a connection to the device before getting or setting any device properties. If you don't need to get or set any properties, you can call the Acquire() method without using the Open or Close() methods. TryOpen() is the preferred way to open a connection to the device. | |
PreFilterMessage | Filters out a message before it is dispatched. | |
QueryCapability | Determines if a capability is available from the device. It's unlikely that any one device supports all of the properties and features. You can use this method to find out if a property is get-able and/or set-able. This can also be used to help determine if the device is a camera by checking for camera specific properties, such as FlashUsed or BatteryPercentage. | |
SaveParameters | Saves the current device parameters to a stream. | |
SaveXmlParameters | Saves device property values into XML format. | |
SetCameraPixelOrder | Sets the pixel order for each enabled camera. | |
SetExtendedCapabilities | Sets the extended capabilities your application needs to negotiate during states 5 and 6 of a Twain
session. | |
SetExtendedImageInfoOptions | Sets the extended image information options to obtain after acquiring the data. | |
SetFrames | Sets multiple frames to acquire from when scanning. | |
SetImageDataset | Sets the indices of the images you want to acquire. This is useful when you want to acquire multiple images from a camera with a single call to the Acquire() method. | |
SetImprinterEndorser(ImprinterEndorserType, Boolean) | Use this method to enable or disable an imprinter or endorser. | |
SetImprinterEndorser(ImprinterEndorserType, ImprinterEndorserMode, String, Int32, String) | Use this method to enable an imprinter or endorser and set its parameters. | |
ShowUserInterface | Displays the device interface. This operation is used by applications that wish to display the device user interface to allow the user to manipulate the devices current settings for resolution, paper size, etc. but not acquire an image. | |
StartAutomaticCapture | Starts an automatic capture process. This method does not acquire the images. Automatic capture implies that the device is capable of capturing images without the presence of the Application. This means that it must be possible for the Application to close the device and reopen it later, after the images have been captured. | |
ToString | A string which describes this object. (Overrides Object.ToString().) | |
TryOpen |