GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetBitDepth Method
Bit Depth.





In This Topic
TwainSetBitDepth Method (GdPictureImaging)
In This Topic
Specifies the number of bit per pixel for the current value of PixelType.
Syntax
'Declaration
 
Public Function TwainSetBitDepth( _
   ByVal BitDepth As Integer _
) As Boolean
public bool TwainSetBitDepth( 
   int BitDepth
)
public function TwainSetBitDepth( 
    BitDepth: Integer
): Boolean; 
public function TwainSetBitDepth( 
   BitDepth : int
) : boolean;
public: bool TwainSetBitDepth( 
   int BitDepth
) 
public:
bool TwainSetBitDepth( 
   int BitDepth
) 

Parameters

BitDepth
Bit Depth.

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks

Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN)

Ambiguity in the Specification prior to version 2.2 may result in some Data Sources reporting just the depth-per-channel. In the majority of cases a value of 8 for ICAP_BITDEPTH when ICAP_PIXELTYPE is TWPT_RGB may be treated as if the bit depth is really 24.

See Also