AddImage Method of the Batch Object
This method allows you to add an image from file to the batch. The method creates document in the batch for added image.
Note: When adding an image, the parameters of image preparation (ImageLoadingParams object) are used, which are identical to the parameters related to the batch type into which the image is added.
Visual Basic .NET
Sub AddImage(Path As String)
HRESULT AddImage( BSTR Path );
- [in] This variable contains the full path to the image file. For example, "D:\SampleImages\Sample.tif".
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
- To add several images to the batch, you can use the AddImages method of the Batch object. This method allows you to set different parameters of image adding.
- You may also use this method to open digital documents of supported formats.
C++ (COM) code
// Global ABBYY FlexiCapture SDK Engine object. FCEngine::IEnginePtr Engine; ... // Open the project FCEngine::IProjectPtr project = Engine->OpenProject("D:\\TestProject\\TestProject.fcproj"); // Add new batch FCEngine::IBatchPtr batch = project->Batches->AddNew( L"TestBatch" ); // Open the batch batch->Open(); // Add image to the batch batch->AddImage( L"D:\\SampleImages\\0001.tif" ); ...
This method is used in the following code samples: Hello, Invoices Processing and Training.
3/24/2023 8:48:38 AM