跳转到主要内容
该方法用于打开图像文件并创建 FRDocument 对象。

语法

C++

HRESULT CreateFRDocumentFromImage(
  BSTR               ImageFileName,
  IPrepareImageMode* PrepareMode,
  IFRDocument**      Result
);

C#

IFRDocument CreateFRDocumentFromImage(
  string           ImageFileName,
  IPrepareImageMode PrepareMode
);

Visual Basic .NET

Function CreateFRDocumentFromImage( _
  ImageFileName As String, _
  PrepareMode As IPrepareImageMode, _
) As IFRDocument

参数

ImageFileName [in] 此变量包含要打开的图像文件的完整路径。 示例:Windows:C:\MyPictures\MyPic.bmp,Linux:/opt/MyPictures/MyPic.bmp,macOS:/Users/user/Pictures/MyPic.bmp PrepareMode [in] 此参数引用 PrepareImageMode 对象,该对象指定图像在打开过程中将如何进行预处理。 Result [out, retval] 指向 IFRDocument* 指针变量的指针,该变量接收生成的 FRDocument 对象的接口指针。不得为 NULL。

返回值

该方法没有特定的返回值。它会返回 ABBYY FineReader Engine 函数的标准返回值

备注

对于 Linux 和 Windows,如果您的许可证包含 Office Formats Opening 模块,您还可以使用此方法打开受支持格式的电子文档。

另请参见

Engine FRDocument CreateFRDocument