On Mon, Apr 19, 2010 at 4:31 PM, Jens Alfke <[email protected]> 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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
