TIFFRepresentationUsingCompression not working as it should
TIFFRepresentationUsingCompression not working as it should
- Subject: TIFFRepresentationUsingCompression not working as it should
- From: Ben Mackin <email@hidden>
- Date: Tue, 02 Jul 2002 10:57:00 -0700
I am working on a objective-c program, and I came across the following
routine:
- (NSData *)TIFFRepresentationUsingCompression:(NSTIFFCompression)comp
factor:(float)aFloat;
Which is just what I needed. So I wrote my code, and used this along with
the NSTIFFCompression code of NSTIFFCompressionCCITTFAX3, and I outputed my
NSData to disk. But I got a full color tiff file (definitely not what I
should have). If you look at the description for NSTIFFCompressionCCITTFAX3
you see:
NSTIFFCompressionCCITTFAX3
CCITT Fax Group 3 compression. It's for one-bit fax images sent over
telephone lines.
From my understanding of that, and of tiff-f files, I should have gotten a
1-bit, black and white image. What went wrong? Did I read into this too
much, or am I not saving it with CCITT Fax Group 3 compression as it should
be?
I need someone that knows something to shed some light. I know this should
work, as it is documented to work.
Thanks,
Ben
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.