Bit Depth reduction. A member of the TwainBitDepthReduction enumeration.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetBitDepthReduction Method

TwainSetBitDepthReduction Method (GdPictureImaging)

In This Topic
Tries to specifies the Reduction Method the Source should use to reduce the bit depth of the data.
Syntax
'Declaration
 
Public Function TwainSetBitDepthReduction( _
   ByVal BitDepthReduction As TwainBitDepthReduction _
) As Boolean
public bool TwainSetBitDepthReduction( 
   TwainBitDepthReduction BitDepthReduction
)
public function TwainSetBitDepthReduction( 
    BitDepthReduction: TwainBitDepthReduction
): Boolean; 
public function TwainSetBitDepthReduction( 
   BitDepthReduction : TwainBitDepthReduction
) : boolean;
public: bool TwainSetBitDepthReduction( 
   TwainBitDepthReduction BitDepthReduction
) 
public:
bool TwainSetBitDepthReduction( 
   TwainBitDepthReduction BitDepthReduction
) 

Parameters

BitDepthReduction
Bit Depth reduction. A member of the TwainBitDepthReduction enumeration.

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) To get the TWAIN state, use the TwainGetState() method.
See Also