Get skew angle of the provided document image.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
| C# |
|---|
public double GetSkewAngle( UnmanagedImage image ) |
Parameters
- image
- Type: AForge.Imaging..::.UnmanagedImage
Document’s unmanaged image to get skew angle of.
Return Value
Returns document’s skew angle. If the returned angle equals to -90, then document skew detection has failed.
Exceptions
| Exception | Condition |
|---|---|
| AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format of the source image. |