Re: fast bitmap image scaling
Re: fast bitmap image scaling
- Subject: Re: fast bitmap image scaling
- From: Marcel Weiher <email@hidden>
- Date: Thu, 11 Jan 2007 00:32:54 -0800
On Jan 10, 2007, at 13:03 , Ben Zotto wrote:
I'm relatively new to the graphics end of the Mac platform, and I'm
looking for pointers for optimizing some drawing I'm doing. I am
working an NSImage composited into a custom view. I am user a timer
to animate the image to grow from relatively small to relatively
large in the view.
Using an NSImage is probably not a good idea for this, as the NSImage
usually wants to generate a representation at the specific size and
then composite that, so you are paying quite a bit of overhead that
you're not getting any benefit from. Try drawing the NS*ImageRep
directly instead directly at the size you need.
Cheers,
Marcel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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