title: How to convert .tff images to CCITT4 format
body: <p>I got the new image successfully, but I can't get the original image, the image was cropped.<br>
  Here is the code I tried:</p>
  
  <pre><code>private byte[] ConvertToCCITT4(byte[] input)
  {    
      MemoryStream memoryStream1 = new MemoryStream(input);
  
      RasterCodecs.CodecsPath = new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName;
      RasterCodecs rasterCodecs = new RasterCodecs();
      using (IRasterImage irasterImage = rasterCodecs.Load((Stream)memoryStream1))
      {
          MemoryStream memoryStream2 = new MemoryStream();
          rasterCodecs.Save(irasterImage, (Stream)memoryStream2, (RasterImageFormat)29, 1);
          return memoryStream2.ToArray();
      }
  }     
  </code></pre>