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( BitmapData imageData ) |
Parameters
- imageData
- Type: System.Drawing.Imaging..::.BitmapData
Document’s image data 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. |