Re: Stretching NSImage PNGs smoothly
Re: Stretching NSImage PNGs smoothly
- Subject: Re: Stretching NSImage PNGs smoothly
- From: Kyle Sluder <email@hidden>
- Date: Thu, 19 Nov 2009 20:25:02 -0800
On Thu, Nov 19, 2009 at 8:05 PM, Dave Keck <email@hidden> wrote:
> In my testing several months ago, though, I found that manually
> drawing the three segments (using NSImage's -drawInRect:) to be
> faster. So if performance is an issue, you might be better off rolling
> your own.
Did you account for resolution independence and integral pixel
alignment? If not, I can see how your own code would be faster.
Otherwise, I imagine Apple has done a great deal of optimization on
these functions. If not, it might be worth filing a bug.
--Kyle Sluder
_______________________________________________
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