AutoDeskewCommand Class |
Namespace: Atalasoft.Imaging.ImageProcessing.Document
The AutoDeskewCommand type exposes the following members.
Name | Description | |
---|---|---|
AutoDeskewCommand | Creates a new instance of AutoDeskewCommand. | |
AutoDeskewCommand(Rectangle) | Initializes a new instance of the AutoDeskewCommand with default settings and a
rectangular area to process. | |
AutoDeskewCommand(Int32, Int32) | Initializes a new instance of the AutoDeskewCommand specifying the precision and limit
angle. | |
AutoDeskewCommand(SerializationInfo, StreamingContext) | Creates a new instance of AutoDeskewCommand from serialization information. | |
AutoDeskewCommand(Int32, Int32, Rectangle) | Initializes a new instance of the AutoDeskewCommand specifying the precision, limit
angle, and rectangular area to process. | |
AutoDeskewCommand(Int32, Int32, AutoDeskewCropMode, Color, Rectangle) | Initializes a new instance of the AutoDeskewCommand specifying the precision, limit
angle, crop mode, background color, and rectangular area to process. |
Name | Description | |
---|---|---|
ApplyToAnyPixelFormat | Reports whether or not this command will be applied to any supplied PixelFormat image (Inherited from ImageCommand.) | |
Area | Gets or sets rectangular area that will be used for determining the skew angle. | |
BackgroundColor | Gets or sets the background color to use when de-skewing the image. | |
CanApplyToAnyPixelFormat | Returns true if the command can be applied to any PixelFormat. (Inherited from ImageCommand.) | |
Coverage | Represents the percentage of the image that will be randomly sampled when determining the skew angle.
| |
CropMode | Gets or sets a value indicating the method of cropping the resulting de-skewed image. | |
ExtractBoundary | Gets or sets a value which will pre-process the image by removing solid filled areas of the image.
| |
InPlaceProcessing | Gets a value indicating if the source image data is processed in-place as opposed to returning a new
image. (Inherited from ImageCommand.) | |
LimitAngle | Gets or sets the maximum skew angle in degrees. | |
Precision | Gets or sets the precision of the de-skew angle calculation. | |
Progress | Gets or sets the ProgressEventHandler delegate which can be used to view or cancel the
progress of the current process. (Inherited from ImageCommand.) | |
SkewAngle | Obsolete. Gets a value indicating the last detected skew angle. | |
SupportedPixelFormats | Returns an array of PixelFormats supported by this command. (Overrides ImageCommandSupportedPixelFormats.) |
Name | Description | |
---|---|---|
Apply | Apply the command to the given image. (Inherited from ImageCommand.) | |
ApplyToImage | Obsolete.
Applies the command to the source AtalaImage.
(Inherited from ImageCommand.) | |
ConstructChangedSourceImage | The method is called by the default implementation of Apply. It determines if it is necessary to create a
copy of the source image in a different pixel format and if so, determines the best new pixel format and allocates
that image. (Inherited from ImageCommand.) | |
ConstructFinalImage | Represents the base class for all image processing routines that modify image data. (Overrides ImageCommandConstructFinalImage(AtalaImage).) | |
ConstructImageResults | Represents the base class for all image processing routines that modify image data. (Overrides ImageCommandConstructImageResults.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetChangedPixelFormat | This method is called to change the pixel format of the source image. (Inherited from ImageCommand.) | |
GetDeskewAngle | GetDeskewAngle returns the skew angle of the image without changing the image at all.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetObjectData | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ImageCommandGetObjectData | Aggregates ImageCommand data into the supplied SerializationInfo object. (Inherited from ImageCommand.) | |
IsPixelFormatSupported | Represents the base class for all image processing routines that modify image data. (Overrides ImageCommandIsPixelFormatSupported(PixelFormat).) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PerformActualCommand | Represents the base class for all image processing routines that modify image data. (Overrides ImageCommandPerformActualCommand(AtalaImage, AtalaImage, Rectangle, ImageResults).) | |
SelectBestAlternatePixelFormat | Choose the best pixel format to use for this command when the supplied source image's pixel format is
unacceptable. (Inherited from ImageCommand.) | |
SelectPreferredPixelFormat | Chooses a pixel format that is preferred for this command. (Inherited from ImageCommand.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
VerifyImage | Verify the integrity of an AtalaImage. (Inherited from ImageCommand.) | |
VerifyProperties | Represents the base class for all image processing routines that modify image data. (Overrides ImageCommandVerifyProperties(AtalaImage).) |
This command works best with images containing horizontal text.
There are a few ways to improve performance. Decrease the LimitAngle and Precision or pass in a smaller rectangular area containing the horizontally aligned text area. The Coverage property can be decreased to increase performance, however it will result in loss accuracy. For guaranteed accuracy, set the Coverage property to 100.
The SkewAngle property is set to the last detected skew angle. See GetDeskewAngle(AtalaImage) to determine the skew angle without actually rotating the image.
As of 6.0 AutoDeskewCommnd now additionally supports the following image formats: ,Pixel8bppGrayscale, Pixel24bppBgr, Pixel32bppBgr and Pixel32bppBgra.