> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to