Image Deskew Licensing Plugin
Leverage the Image Deskew license plugin to effortlessly correct skew in scanned documents or photos. You can apply the deskew operation to one of the supported image file formats. Before commencing the process, ensure you obtain a Metered license by providing your public key and private password using the `SetMeteredKey()` method. Then, load your file, such as a TIFF image format, using the `Load()` method, and proceed to deskew using the NormalizeAngle() method before saving it with the `Save()` method.
using Aspose.Imaging; | |
string templatesFolder = @"c:\Users\USER\Downloads\templates\"; | |
string dataDir = templatesFolder; | |
Run2(); | |
//----------------------------------------------------------------- | |
// Deskew plug-in license use examples | |
//----------------------------------------------------------------- | |
void Run2() | |
{ | |
// Valid deskew license use example | |
Metered license = new Metered(); | |
// Only metered plug-in license is supported | |
license.SetMeteredKey("<your public key>", "<your private key>"); | |
string OutputDirectory = templatesFolder; | |
using (var image = (RasterImage)Image.Load(Path.Combine(templatesFolder, "multipage.tif"))) | |
{ | |
var filePath = Path.Combine(OutputDirectory, "deskewed_multipage.tif"); | |
image.NormalizeAngle(); | |
image.Save(filePath); | |
} | |
} |
Explore the features of our free online deskew application demo directly on our Aspose.Imaging Deskew App website.