> 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 mult
On Thu, Nov 19, 2009 at 8:05 PM, Dave Keck 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
NSDrawThreePartImage() might help. Of course, it requires three
separate images to begin with. (I find this preferable, though,
because it avoids having to hard-code image sizes in your code.)
In my testing several months ago, though, I found that manually
drawing the three segments (using NSImage