problems with GDI+ and tiff images

A

Asfar

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
 
T

Tamas Demjen

Asfar said:
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.

Are you sure your images are 1-bit B&W? CCITT Group 4 is for images
where each pixel is represented by 1 bit only.

Tom
 
A

Asfar

My orignal image is 1bit B&W. When I create a bitmap object its not 1bit
B&W. So I guess i need to make sure that the new image is 1bit B&W.

-Asfar
 

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

Top