Accusoft.Forms1 - Updated
RegisterImage() Method



Accusoft.ScanFixXpressSdk Namespace > ScanFix Class > RegisterImage Method : RegisterImage() Method
Automatically positions text horizontally and vertically in the current image, providing a consistent left and top margin for documents. Use this function if the default control parameters are adequate.
Syntax
<DebuggerNonUserCodeAttribute()>
<DebuggerStepThroughAttribute()>
Public Overloads Function RegisterImage() As ImageRegistrationResults
Dim instance As ScanFix
Dim value As ImageRegistrationResults
 
value = instance.RegisterImage()

Return Value

A ImageRegistrationResults object containing information about the results of the image registration process.
Exceptions
ExceptionDescription
Thrown when image type is unsupported.
Thrown when operation failed.
Remarks

Registration is helpful for Document Imaging and Forms Processing applications where accurate positioning is critical, since it makes OCR zoning of text fields in forms much more reliable.

For horizontal registration, the leftmost edge of the text is located, and positioned a fixed distance from the left edge of the image. For vertical registration, the topmost edge of the text is located, and positioned a fixed distance from the top edge of the image.

Note: When Registration adds pixels to the image, the added pixels are always white.

This method will use the default values specified in the ImageRegistrationOptions object. This means that both horizontal and vertical registration will be enabled. For more control over the registration process, see the RegisterImage(ImageRegistrationOptions) method.

Note: When using RegisterImage, we recommend that you first Deskew the image, unless you know the original is perfectly straight.

See Also

Reference

ScanFix Class
ScanFix Members
Overload List