SaveImageRegionTo Method of the ImageDocument Object

This method saves the parts of the image restricted by the specified set of rectangles into a folder on disk. The saved image is in the ABBYY FineReader Engine internal format.

Syntax

C++

HRESULT SaveImageRegionTo(
  BSTR               FolderName,
  IRegion*           Rects
);
    

C#

void SaveImageRegionTo(
  string           FolderName,
  IRegion          Rects
);
    

Visual Basic .NET

Sub SaveImageRegionTo( _
  FolderName As String, _
  Rects As IRegion _
)
    

Parameters

FolderName
[in] This parameter stores the full path to the folder. For example, "C:\MyPic".
Rects
[in] This parameter of the Region type specifies the set of rectangles that are to be copied from the source image into the target one. The coordinates of rectangles are related to the deskewed black-and-white page of the ImageDocument. If an empty region is passed as the value of this parameter, an error is returned. You can check whether the region is empty using the IRegion::IsEmpty property.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

ImageDocument

07.11.2025 12:48:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.