TIF getting saved as compressed?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

I am loading a TIF file into a bitmap stream (Dim bmp as new bitmap etc
etc). I use GDI+ to draw some text onto the lower left corner of the TIF,
then save the image (i.e. bmp.Save(filename)). However, I am finding that
the original TIF is NOT compressed, but when I save the bmp stream as TIF,
it compresses it. I know this because I load each one into a viewer and the
properties show that the newly saved TIF is compressed via LZW. Problem is,
I don't want it compressed. This is a high quality image and it really needs
to remain as the original is (uncompressed).

Is there something I have to specify during the .Save to tell it NOT to
compress the image? Thanks.

Tom
 
LZW compression is lossless unlike JPEG compression. What's the problem with
using an image format that gives you a smaller file for the same quality?

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
You can still use the image encoders but you have to know which encoders are
good for which file format. For example the CCITT4 encoder is only good for
1 bit per pixel TIFF's

There are no simple rules to follow. It all depends what you want to do.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top