Solved

Is there a way to save a TIF image file as follows in CompressionCCITT4 using C# with .Net Framework 4.0?

Posted on 2016-09-09
1
76 Views
Last Modified: 2016-09-14
I am developing a C# application using VS2010 and .Net Framework 4.0.

Is there a way to save a TIF image file as follows in CompressionCCITT4 ?

For ex:

img3.Save(tif3, System.Drawing.Imaging.ImageFormat.Tiff);
img3.Dispose();
0
Comment
Question by:zimmer9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 500 total points
ID: 41792523
appears so... your pseduo code is close...
a google search brings up
fOrgTiff.Save(ms, fImageCodecInfo, fEncoderParameters);

Open in new window

where one of the encoder parameters is EncoderValue.CompressionCCITT4

see
http://stackoverflow.com/questions/4336644/c-sharp-converting-tiff-jpeg-compression-to-tiff-compressionccitt4-gives-a-lot-o

but a better explanation is
http://programcsharp.com/blog/post/save-as-g4-ccitt-tiff-with-.net
First, you need a monochrome (1bpp) source GDI+ Bitmap. .NET doesn't have a very good built in mechanism for converting from color to monochrome. The only reliable and performant method is a scale-to-grey algorithm written in unsafe code.
 not the 2007 date so maybe something better.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question