Tallan Blog

Tallan’s Experts Share Their Knowledge on Technology, Trends and Solutions to Business Challenges

Using Atalasoft DotImage to create blank Tiff image

Atalasoft DotImage is a great library for working with all kinds of images. I recently had the need for a Tiff image which met the following specification:

  • 300 x 300 dpi
  • Print at regular letter size (8 1/2 x 11)
  • Encoded using Group 4 compression

I created this Tiff file using only the following 5 lines of code:

AtalaImage atalaImage = new AtalaImage(2550, 3263, PixelFormat.Pixel1bppIndexed);
atalaImage.Resolution = new Dpi(300, 300, ResolutionUnit.DotsPerInch);
TiffDocument testDoc = new TiffDocument();
testDoc.Pages.Add(new TiffPage(atalaImage, TiffCompression.Group4FaxEncoding));

Prior to using this code I had simply scanned a blank sheet. I quickly realized this was not a good alternative due to inconsistencies with the scanner bed. Using this simple code I created a perfect Tiff.


Share this post:

1 Comment. Leave new

Great example of atalasoft dotimage usage. The resolution may go up to 600dpi for sharper output. Any reason for using Group4FaxEncoding encoding?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>