Re: Stretching NSImage PNGs smoothly
Re: Stretching NSImage PNGs smoothly
- Subject: Re: Stretching NSImage PNGs smoothly
- From: Dave Keck <email@hidden>
- Date: Fri, 20 Nov 2009 10:46:50 -0500
> Did you account for resolution independence and integral pixel
> alignment? If not, I can see how your own code would be faster.
Ah, that might explain it. And looking at the docs for
NSDrawThreePartImage(): "You should prefer the use of this function
over your own custom code for handling multi-part images whose size
can change."
My test case was a 1pt:1px scenario though, so I wouldn't have thought
RI would be much of a factor. Perhaps my memory fails me on how
drastic the speed difference really was.
_______________________________________________
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