Add stop capture method.

This commit is contained in:
Eugene Wang
2021-04-27 21:49:33 -04:00
parent b86ecb3c1d
commit 3ea2ec1555

View File

@@ -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.