Re: Stretching NSImage PNGs smoothly
Re: Stretching NSImage PNGs smoothly
- Subject: Re: Stretching NSImage PNGs smoothly
- From: Dave Keck <email@hidden>
- Date: Thu, 19 Nov 2009 18:05:05 -1000
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's -drawInRect:) to be
faster. So if performance is an issue, you might be better off rolling
your own.
_______________________________________________
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