• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using coregraphics with vector art from illustrator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >using coregraphics with vector art from illustrator (From: "Patrick J. Collins" <email@hidden>)
 >Re: using coregraphics with vector art from illustrator (From: Jens Alfke <email@hidden>)
 >Re: using coregraphics with vector art from illustrator (From: Philip Mobley <email@hidden>)
 >Re: using coregraphics with vector art from illustrator (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: using coregraphics with vector art from illustrator
  • Next by Date: where is the basic NSString literal escape documentation?
  • Previous by thread: Re: using coregraphics with vector art from illustrator
  • Next by thread: Re: using coregraphics with vector art from illustrator
  • Index(es):
    • Date
    • Thread