Save image with different image processing applied

How can I save an image with different image processing/image filters applied?

Apply the following simple code example:

OcrInput Input = new OcrInput(browsFile_txt.Text);
// Image filter being tested
Input.ToGrayScale();
foreach (var p in Input.Pages)
{
p.SaveAsImage($"{outputPath}\\{DateTime.Now.ToString("yyyyMMddhhmmss")}.png");
}

For a full list of image optimization filters available in IronOCR, see https://ironsoftware.com/csharp/ocr/examples/ocr-image-filters-for-net-tesseract/

MSDN-Style Class Documentation - https://ironsoftware.com/csharp/ocr/object-reference/api/IronOcr.OcrInput.html#methods

Still need help? Submit a Support Ticket Submit a Support Ticket