跳轉到主要內容
此方法已在 Windows 版 FRE 中實作。
此方法是在用戶端實作的。每次掃描影像時,ABBYY FineReader Engine 都會呼叫此方法。它會提供掃描作業進度的相關資訊,並允許在必要時終止掃描。

語法

C++

HRESULT OnImageScanned(
  BSTR           SourceName,
  BSTR           path,
  VARIANT_BOOL*  Cancel
);

C#

void OnImageScanned(
  string     SourceName,
  string     path,
  ref bool   Cancel
);

Visual Basic .NET

Sub OnImageScanned( _
  SourceName As String, _
  path As String, _
  ByRef Cancel As Boolean _
)

參數

SourceName [in] 此參數指定接收到的掃描影像所來自的掃描來源名稱。 path [in] 此參數指定產生之影像檔案的路徑。 Cancel [in, out] 您可以將此變數設為 TRUE,以表示應終止掃描。

回傳值

此方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

另請參閱

IScanCallback