You can:
- Deskew images in all available formats (Supported formats table - https://docs.aspose.com/imaging/net/supported-file-formats/).
Interested ?
You may go further at : https://products.aspose.com/imaging/net/
You can:
Interested ?
You may go further at : https://products.aspose.com/imaging/net/
using Aspose.Imaging; | |
using System.IO; | |
string templatesFolder = @"c:\Users\USER\Downloads\templates\"; | |
string dataDir = templatesFolder; | |
// Get rid of the skewed scan with default parameters | |
using (RasterImage image = (RasterImage)Image.Load(dataDir + "template.jpg")) | |
{ | |
image.NormalizeAngle(false /*do not resize*/, Color.LightGray /*background color*/); | |
image.Save(Path.Combine(dataDir, "result.jpg")); | |
} | |
File.Delete(dataDir + "result.jpg"); |