Re: using coregraphics with vector art from illustrator
Re: using coregraphics with vector art from illustrator
- Subject: Re: using coregraphics with vector art from illustrator
- From: Ken Ferry <email@hidden>
- Date: Mon, 19 Apr 2010 16:42:50 -0700
On Mon, Apr 19, 2010 at 4:31 PM, Jens Alfke <email@hidden> wrote:
>
> On Apr 19, 2010, at 3:54 PM, Philip Mobley wrote:
>
> Would that make a opaque white box around the shape? What about
>> transparency... would that be retained or would it be flattened?
>>
>
> No, there's no frame. It gets drawn as a PDF, so it uses whatever
> compositing is specified in the source.
>
> Lots of apps store icons in the form of PDF files, because they're
> resolution-independent. It's encouraged by Apple.
NSImage is likely easier to use for this than CG, because it can deal with
PDF and bitmap art with the same API. It maintains a bitmap cache of the
last way the PDF was rendered (unless shut off), which is likely to be
appropriate for your use. Though, feel free to use CGPDFDocument instead if
you like.
NSImage will also directly read illustrator .ai files.
-Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden