GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutomaticDiscardBlankPages Method
True to enable automatic discard blank images capability, else False.





In This Topic
TwainSetAutomaticDiscardBlankPages Method (GdPictureImaging)
In This Topic
If this option is available on opened source, try to enable or disable the automatic discard blank page capability.
Syntax
'Declaration
 
Public Function TwainSetAutomaticDiscardBlankPages( _
   ByVal AutoDiscard As Boolean _
) As Boolean
public bool TwainSetAutomaticDiscardBlankPages( 
   bool AutoDiscard
)
public function TwainSetAutomaticDiscardBlankPages( 
    AutoDiscard: Boolean
): Boolean; 
public function TwainSetAutomaticDiscardBlankPages( 
   AutoDiscard : boolean
) : boolean;
public: bool TwainSetAutomaticDiscardBlankPages( 
   bool AutoDiscard
) 
public:
bool TwainSetAutomaticDiscardBlankPages( 
   bool AutoDiscard
) 

Parameters

AutoDiscard
True to enable automatic discard blank images capability, else False.

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