Convert from Image to Black and White TIFF (C# .NET)

How can convert from image to Black & White TIFF. we are using the following code to do the conversion:


// load the image from memory
Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(msOriginal);

init TIFF options
TiffOptions options = new TiffOptions();
options.Compression = Aspose.Imaging.FileFormats.Tiff.Enums.TiffCompressions.CcittFax4;

using (MemoryStream ms = new MemoryStream())
{
image.Save(ms);

File.WriteAllBytes(String.Format(“c:\{0}.tiff”, Guid.NewGuid()), ms.ToArray());
}

Hi there,


Thanks for your inquiry. Please also pass TiffOptions setting while saving image, as following. Hopefully it will resolve the issue.

image.Save(ms,options);

Please feel free to contact us for any further assistance.

Best Regards,