Re: Vector Graphic Dock Icon?
Re: Vector Graphic Dock Icon?
- Subject: Re: Vector Graphic Dock Icon?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 6 May 2009 12:08:10 -0700
On Wed, May 6, 2009 at 11:45 AM, Eric E. Dolecki <email@hidden> wrote:
> I don't want to hijack this thread, but is it acceptable to use small PDF
> files for things like game assets, or does vector artwork bog the processor
> down and bitmaps are preferred?
It shouldn't cause any problems unless you are constantly reloading
and rasterizing the images from their PDF form. NSImages (and other
APIs) can cache a rasterized version of a PDF image once draw
destination context is hit. I know many sprite based games that have
switched to using PDFs.
For example checkout the asteroids example on the following...
http://cocoawithlove.com/search/label/CoreAnimation
-Shawn
_______________________________________________
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