Click or drag to resize
TesseractOcrImageResizeSettings Class
Holds settings for resizing an image.
Inheritance Hierarchy
SystemObject
  DevScope.Ocr.Tesseract.WindowsTesseractOcrImageResizeSettings

Namespace: DevScope.Ocr.Tesseract.Windows
Assembly: DevScope.Ocr.Tesseract.Windows.x86 (in DevScope.Ocr.Tesseract.Windows.x86.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class TesseractOcrImageResizeSettings

The TesseractOcrImageResizeSettings type exposes the following members.

Constructors
  NameDescription
Public methodTesseractOcrImageResizeSettings
Initializes a new instance of the TesseractOcrImageResizeSettings class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyResizeOperationOrder
The order of execution of the resize operation when the engine is pre-processing a document page image.
Public propertyScaleXFactor
The horizontal resize scale factor
Public propertyScaleYFactor
The vertical resize scale factor
Top
Remarks
The resize operation settings will be interpreted in the following way
If ScaleXFactor and ScaleXFactor are both 0.0, no resize is done.
If ScaleXFactor is greater than 0.0 and ScaleYFactor equals 0.0, the image will be resized by multiplying the width by the ScaleXFactor and maintaining the original aspect ratio.
If ScaleXFactor is greater than 0.0 and ScaleYFactor equals 1.0, the image will be resized by multiplying the width by the ScaleXFactor and keeping the same height, streching or expanding horizontaly.
If ScaleYFactor is greater than 0.0 and ScaleXFactor equals 0.0, the image will be resized by multiplying the height by the ScaleYFactor and maintaining the original aspect ratio.
If ScaleYFactor is greater than 0.0 and ScaleXFactor equals 1.0, the image will be resized by multiplying the height by the ScaleYFactor and keeping the same width, streching or expanding vertically.
If ScaleXFactor is greater than 0.0 and ScaleYFactor greater than 0.0, the image will be resized by multiplying the width by the ScaleXFactor and the height by the ScaleYFactor.
See Also