跳轉到主要內容
此方法僅在 Windows 版 FRE 中實作。
此方法會開啟指定的點陣圖 (HBITMAP) 。

語法

C++

HRESULT OpenBitmap(
  __int64            BitmapHandle,
  int                XResolution,
  int                YResolution,
  IPrepareImageMode* PrepareMode
  IImageDocument**   Result
);

C#

IImageDocument OpenBitmap(
  Int64             BitmapHandle,
  int               XResolution,
  int               YResolution,
  IPrepareImageMode PrepareMode
);

Visual Basic .NET

Function OpenBitmap( _
  BitmapHandle As Int64, _
  XResolution As Integer, _
  YResolution As Integer, _
  [PrepareMode As IPrepareImageMode = Nothing] _
) As IImageDocument

參數

BitmapHandle [in] 指定 GDI 物件 (HBITMAP) 的控制代碼。此控制代碼必須可供執行 ABBYY FineReader Engine 的處理序使用。該控制代碼會以 __int64 型別傳遞。 XResolution [in] 指定點陣圖的水平解析度。 YResolution [in] 指定點陣圖的垂直解析度。 PrepareMode [in] 指 PrepareImageMode 物件,該物件會儲存用於將點陣圖轉換為內部格式的參數。此參數可為 0,此時會使用影像準備模式的預設參數;或者,如果已載入 profile,則會使用該 profile 所設定的參數。 Result [out, retval] 指向 IImageDocument* 指標變數的指標,該變數會接收結果 ImageDocument 物件的介面指標。

傳回值

Windows:此方法沒有特定的傳回值,會傳回 ABBYY FineReader Engine 函數的標準傳回值 Linux 和 macOS:此方法會傳回 E_NOTIMPL。

備註

如果在 Linux 中將 Engine 載入為處理序外伺服器,或在 Windows 中使用 OutprocLoader 物件建立該物件,則此方法無法使用。 另請參閱 Engine PrepareBitmap