Re: future proof icon sizes?
Re: future proof icon sizes?
- Subject: Re: future proof icon sizes?
- From: Ricky Sharp <email@hidden>
- Date: Sat, 17 Jun 2006 11:59:45 -0500
On Jun 17, 2006, at 11:28 AM, Uli Kusterer wrote:
Am 17.06.2006 um 17:21 schrieb email@hidden:
Just use PDF, its open, it works, its resolution independent. (I
use vector based editor to make my icons)
For file and application icons (shown in the finder), well, I
haven't tried to use PDF, I always assumed it wanted icns files...
In my last tests (admittedly in an NSImage(View) where I combined
several NSImages into one whole one, PDF was abysmally slow,
though. Pixel formats have the advantage of rendering a lot faster
(no surprise there). It's not that important for dynamic stuff like
bounding boxes, but for more complex stuff like images I wouldn't
yet recommend PDF. But try it out yourself. That was a while ago
and I had to be backwards compatible with 10.3 -- YMMV.
PDF loading/drawing is significantly faster starting with 10.4.
That, among other things, was why I chose to rebaseline my app to
that OS.
Furthermore, you only take the initial hit when the PDF is rendered
for the first time. I use an image factory that caches NSImage
objects to avoid multiple loads and initial draws. From what I've
seen, all NSImage objects contain a bitmap rep and thus subsequent
drawing will always be fast.
My PDFs include anything from simple shapes, to images with over 3K
control points. On a 733 MHz G4, I've been be able to have all my
screens load in under 2 seconds for the initial render. Subsequent
visits to the screens will draw in well under a second.
On average, each 1024 x 768 screen uses about 15 PDFs and a total of
about 700 control points.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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