mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Add stop capture method.
This commit is contained in:
@@ -367,6 +367,17 @@ namespace NTwain
|
||||
return _twain.DatUserinterface(DG.CONTROL, MSG.ENABLEDS, ref ui);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stops the data source's automated feeder
|
||||
/// if <see cref="Capabilities.CAP_AUTOSCAN"/> is set to true.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public STS StopCapture()
|
||||
{
|
||||
TW_PENDINGXFERS pending = default;
|
||||
return _twain.DatPendingxfers(DG.CONTROL, MSG.STOPFEEDER, ref pending);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads information relating to the last capture run.
|
||||
/// Only valid on state 4 after a capture.
|
||||
|
||||
Reference in New Issue
Block a user