How to save a rotated image

Question

How can a rotated image be saved in an external format?

Answer

After a document is loaded to FineReader Engine, it can be written on the disk with all modifications made by calling the WriteToFile method of the Image object.

// C#
document.AddImageFile(imagePath, prepareImageMode, null);

FRPage frPage = document.Pages[0];
ImageDocument imageDocument = frPage.ImageDocument;
IImage bwImage = imageDocument.BlackWhiteImage;

bwImage.WriteToFile(outputFolder, ImageFileFormatEnum.IFF_PngBwPng);

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed