Returns as numeric, the current value of a TWAIN capability.
public Boolean TwainGetCapCurrentNumeric( TwainCapabilities Cap, ref Double CurrentValue );
Public Function TwainGetCapCurrentNumeric( ByVal Cap As TwainCapabilities, ByRef CurrentValue As Double ) As Boolean
|
Parameters |
Description |
|
Cap |
A member of the TwainCapabilities enumeration. |
|
CurrentValue |
Output parameter. Current value of the selected TWAIN capability. |
True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
Before using this function check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() function.
This function can be used to retrieve the following types of capabilities: TWTY_INT8 , TWTY_INT16, TWTY_INT32, TWTY_UINT8, TWTY_UINT16, TWTY_UINT32, TWTY_BOOL, TWTY_FIX32, TWTY_FRAME.
You can determine the type of each TWAIN capability using the TwainGetCapItemType function or looking the twain references from http://www.twain.org
Catch the acquisition bit depth used by the default source
Dim CurrentCapValue As Double oGdPictureImaging.TwainOpenDefaultSource(Me.Handle) oGdPictureImaging.TwainGetCapCurrentNumeric(TwainCapabilities.ICAP_BITDEPTH, CurrentCapValue) MsgBox "The current bit depth is: " + str(CurrentCapValue) oGdPictureImaging.TwainCloseSource()
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|