Re: TIFFRepresentationUsingCompression not working as it should
Re: TIFFRepresentationUsingCompression not working as it should
- Subject: Re: TIFFRepresentationUsingCompression not working as it should
- From: Info <email@hidden>
- Date: Thu, 04 Jul 2002 20:50:59 +0200
Hi Ben
Take a look at the AppKit documentation. There's a small part discussing
your problem. There you will get the info that using this compression
requires one bit images without alpha channel. Otherwise this compression
will not work without notice.
Greetings
Wolfgang Neikes
"Ben Mackin" schrieb am 04.07.2002 18:46 Uhr:
>
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.
>
>
>
|| || || ||| |||| | DON'T WASTE YOUR TIME USING IMPROPER TOOLS ||||| ||| ||
|| |
keywerks GmbH
Bilker Allee 64
D-40219 DC<sseldorf
Fon: +49.(0)211.306342
Fax: +49.(0)211.306398
ISDN: +49.(0)211.306398
URL: www.keywerks.de
Mail: email@hidden
Achtung! Jetzt auch erreichbar C<ber VanityCall unter 0700.KEYWERKS
(HZ b, 0,12/Min., NZ b, 0,6/Min. aus dem Netz der Deutschen Telekom AG)
|| ||| | || |||| | || ||||| ||||| || || ||| | || |||| | || ||||| ||||| || ||
||| | || |||| ||| ||||||
_______________________________________________
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.