title: How to add EOFB (End of facsimile block) in tif image
body: <p>I am creating a tif image with CCIT4 compression. This image is not having EOFB. Could someone help me how to add this EOFB to the tif image. Or how to create an image with EOFB information. </p>
  
  <p>Here is my code that generate image without EOFB</p>
  
  <pre><code> var tifImg = new Bitmap(500, 500);
          tifImg.SetResolution(200, 200);
          Graphics graphic = Graphics.FromImage(tifImg);
          graphic.FillRectangle(new SolidBrush(Color.White), new Rectangle(0, 0, 500, 500));
          try
          {
  
                  string data = "My data"; 
                  Font vrFont = new Font("Verdana", 32, GraphicsUnit.Pixel);
                  Size micrSize = TextRenderer.MeasureText(data, vrFont); 
                  graphic.DrawString(data, vrFont, new SolidBrush(Color.Black), new Point(10, 100)); 
                  Rectangle rectangle = new Rectangle(10, 20, 200, 60);
                  graphic.DrawRectangle(new Pen(new SolidBrush(Color.Black)), rectangle);
                  SaveImage(tifImg, fileName, appLogger);
  
  
          var imageEncoders = System.Drawing.Imaging.ImageCodecInfo.GetImageEncoders().ToList();
          var imageCodecInfo = imageEncoders.FirstOrDefault(o =&gt; o.MimeType == "image/tiff");
  
          var encoderParameter = new System.Drawing.Imaging.EncoderParameters(2);
          encoderParameter.Param[0] = new System.Drawing.Imaging.EncoderParameter(System.Drawing.Imaging.Encoder.Compression, (long)System.Drawing.Imaging.EncoderValue.CompressionCCITT4);
          encoderParameter.Param[1] = new System.Drawing.Imaging.EncoderParameter(System.Drawing.Imaging.Encoder.SaveFlag, (long)18);
  
              tifImg.Save(fileName, imageCodecInfo, encoderParameter); 
          }
          catch { throw; }
          finally
          {
              graphic.Dispose();
              tifImg.Dispose();
          }
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Esen</p>