• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stretching NSImage PNGs smoothly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Stretching NSImage PNGs smoothly (From: John Wright <email@hidden>)
 >Re: Stretching NSImage PNGs smoothly (From: Dave Keck <email@hidden>)
 >Re: Stretching NSImage PNGs smoothly (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Dealing with faults in CoreData / AppleScript
  • Next by Date: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • Previous by thread: Re: Stretching NSImage PNGs smoothly
  • Next by thread: initializer methods
  • Index(es):
    • Date
    • Thread