Re: Which format for image file resources in Cocoa application?
Re: Which format for image file resources in Cocoa application?
- Subject: Re: Which format for image file resources in Cocoa application?
- From: Uli Kusterer <email@hidden>
- Date: Mon, 8 May 2006 14:06:19 +0200
Am 05.05.2006 um 20:06 schrieb Ricky Sharp:
As others have pointed out, TIFFs need not be compressed. And,
compression need not be lossy.
Actually, according to header comments in AppKit, they shouldn't be
lossy for TIFFs. NeXT used to support lossy DCT-based JPEG
compression for TIFFs, but in OS X the constants for that are marked
as deprecated. All the lossless formats are still there, however.
If resolution independence is important to you, you'll either need
to author high-DPI bitmapped images, or use vector-based PDF images.
Although this can be abysmally slow. I tried this for the Moose's
animations, and in the end I went back and shipped rasterised
versions of the PDFs because performance was so bad. That was
compositing several PDFs on top of each other in quick succession and
displaying them in an NSImageView, though. I've seen people do a tad
better with CoreGraphics' PDF support used directly.
John Stiles wrote:
Anyroad, TIFF used to be the native bitmap format of the Mac OS X
direct predecessor, so the main reason would be just legacy, along
perhaps with the fact TIFFs are flexible and pretty widely
supported (at least ten years ago *much* better than PNG, does not
have to apply today).
PNG barely existed at all in 1996! I'm not sure exactly when it
came into its own, but it's certainly a more recent format than
TIFF. Times have certainly changed.
Yeah, released in June of that year, according to Wikipedia, and
not really gained popularity until Unisys killed the free license in
'99.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden