LoadImageDocFromMemory Method of the Engine Object
This method restores the contents of the ImageDocument object from the global memory. The method takes as an input parameter an HGLOBAL handle of the memory block from where the object's contents should be loaded. This handle should be obtained from the HandleAsInt64 property of the Handle object returned by the IImageDocument::SaveToMemory method.
Syntax
C++
HRESULT LoadImageDocFromMemory( __int64 HGlobal, IImageDocument** Result );
C#
IImageDocument LoadImageDocFromMemory( Int64 HGlobal);
Visual Basic .NET
Function LoadImageDocFromMemory( HGlobal As Int64 ) As IImageDocument
Parameters
- HGlobal
- [in] This parameter specifies the HGLOBAL handle of the memory block from where the object's contents should be loaded. The handle is passed as __int64. This handle should be obtained from the IImageDocument::SaveToMemory method, and should be valid (not freed).
- Result
- [out, retval] A pointer to IImageDocument* pointer variable that receives the interface pointer of the resulting ImageDocument object.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
Remarks
- The size of the memory area that the object allocates can be obtained by calling the GlobalSize function.
- This method does not work if the Engine object is created using the OutprocLoader object.
See also
9/17/2024 3:14:41 PM