• 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: Scaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scaling


  • Subject: Re: Scaling
  • From: "John C. Randolph" <email@hidden>
  • Date: Sun, 26 Aug 2001 13:07:12 -0700

On Sunday, August 26, 2001, at 12:44 PM, Brian Howard wrote:

One of the main reasons I decided it was time to get involved with Cocoa was the initial hype surrounding Quartz, especially the vector scaling that allows for the Genie Effect and Dock Magnification features. I have seen at least one other person ask about this some weeks ago, but do not remember any response. Is this stuff all done with NSAffine, or is there more to it? A quick glance at NSAffine leads me to believe it can only be used for scaling within a View of some sort. I want to scale an entire custom window! Any sample code lying around that might shed light on how to do these tricks? Or is this private Apple mojo?

Well, mathematically speaking, an Affine transform can't do a non-linear effect like the genie trick. It's limited to rotation, translation, and scaling.

The Dock magnification uses a bitmap interpolation routine that's not published API yet. It *should* show up in NSImageRep at some point. I asked Peter Graffigino (sorry if I misspelled that name) about it, and apparently the image scaling code the dock uses was replaced at the last minute before shipping 10.0, when it was discovered that the previous technique made the diagonal cross-hatching on the wastebasket icon look pretty bad.

-jcr

Support your right to protest a criminal nut-cult. http://freehenson.da.ru/


  • Follow-Ups:
    • Re: Scaling
      • From: Finlay Dobbie <email@hidden>
    • Re: Scaling
      • From: Brian Howard <email@hidden>
References: 
 >Scaling (From: Brian Howard <email@hidden>)

  • Prev by Date: Re: Getting keyDowns
  • Next by Date: Re: Getting keyDowns
  • Previous by thread: Scaling
  • Next by thread: Re: Scaling
  • Index(es):
    • Date
    • Thread