| Accusoft.ScanFixXpressSdk Namespace > ScanFix Class > RegisterImage Method : RegisterImage() Method |
'Declaration <DebuggerNonUserCodeAttribute()> <DebuggerStepThroughAttribute()> Public Overloads Function RegisterImage() As ImageRegistrationResults
'Usage Dim instance As ScanFix Dim value As ImageRegistrationResults value = instance.RegisterImage()
[DebuggerNonUserCode()] [DebuggerStepThrough()] public ImageRegistrationResults RegisterImage()
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: ImageRegistrationResults* RegisterImage();
[DebuggerNonUserCode()] [DebuggerStepThrough()] public: ImageRegistrationResults^ RegisterImage();
| Exception | Description |
|---|---|
| ScanFixUnsupportedImageException | Thrown when image type is unsupported. |
| ScanFixException | Thrown when operation failed. |
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.