GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableBitDepthNo Method
Index of the available bit depth value. Must be a value between 1 and TwainGetAvailableBitDepthCount() returned value.





In This Topic
TwainGetAvailableBitDepthNo Method (GdPictureImaging)
In This Topic
Returns an available bit depth value which can be used by the opened source in its current configuration.
Syntax
'Declaration
 
Public Function TwainGetAvailableBitDepthNo( _
   ByVal Number As Integer _
) As Integer
public int TwainGetAvailableBitDepthNo( 
   int Number
)
public function TwainGetAvailableBitDepthNo( 
    Number: Integer
): Integer; 
public function TwainGetAvailableBitDepthNo( 
   Number : int
) : int;
public: int TwainGetAvailableBitDepthNo( 
   int Number
) 
public:
int TwainGetAvailableBitDepthNo( 
   int Number
) 

Parameters

Number
Index of the available bit depth value. Must be a value between 1 and TwainGetAvailableBitDepthCount() returned value.

Return Value

The selected bit depth value.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also