Groups | Blog | Home
all groups > dotnet drawing api > march 2006 >

dotnet drawing api : Using GDI+ to manipulate and save tiff image


Asfar
3/29/2006 10:16:52 AM
I am using GDI+ to load a tiff image and write a string to it and save the
tiff image to another file.

I can save the image with only LZW Compression and not abel to save with
CCITT4 compression. If I use CCITT4 compression I get an invalid paramter
error when saving file.

The file saved with LZW compression has different resolution and tags then
the orignal image. Is there a way to save the image with the same tags as
the orignal image.

Thanks,
-Asfar

Asfar
3/31/2006 1:41:53 PM
Hi Bob,

I tried your way of manipulating 32bitRGB to 1Bit monochrome. But the
process is very slow just for a single image.
I even changed just to check one component of color > 128 but now it takes
11-13 sec for each image.
I want to process each image within a second.

Any pointers on how to go about this?

Thanks,
-Asfar

[quoted text, click to view]

Bob Powell [MVP]
3/31/2006 6:02:34 PM
CCITT4 compression is specfically for fax formats and will not save a
contone tiff.

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

Ramuseco Limited .NET consulting
http://www.ramuseco.com

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.



[quoted text, click to view]

Anders
5/26/2006 5:35:25 AM
AddThis Social Bookmark Button