Re: TIFFRepresentationUsingCompression not working as it should
Re: TIFFRepresentationUsingCompression not working as it should
- Subject: Re: TIFFRepresentationUsingCompression not working as it should
- From: Ben Mackin <email@hidden>
- Date: Thu, 04 Jul 2002 09:46:13 -0700
Well, since no one seems to have any idea on this one, maybe it is a bug?
Does any one on this list have a contact email at apple I could use to send
this info in to them? If it is a bug in OS X, they probably want to know. If
it is not a bug, but rather some other issue at stake, maybe they could
explain what is up.
Thanks,
Ben
on 7/2/02 10:57 AM, Ben Mackin at email@hidden wrote:
>
>
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.
_______________________________________________
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.