Re: Scaling
Re: Scaling
- Subject: Re: Scaling
- From: Brian Webster <email@hidden>
- Date: Mon, 27 Aug 2001 11:26:39 -0500
On Sunday, August 26, 2001, at 06:00 PM, cocoa-dev-
email@hidden wrote:
On Sunday, August 26, 2001, at 09:07 pm, John C. Randolph wrote:
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.
And a skew... You can't apply affine transforms to NSWindows, though.
There is a Carbon API to do it. You *CAN* do it from Cocoa
using private
CGS calls (I have), but the main problem is that they are private :-)
The Dock's non-linear effects appear to have some sort of hooks
into the
windowserver directly... There is something related to window "shapes",
but that is an opaque datatype. I seem to remember hearing that
Office X
genies out windows from toolbars... Mind you, they run on 10.1. I don't
suppose Apple has made more API available on 10.1? Or perhaps just
because Microsoft is big and Apple wants them on the platform they gave
them private headers. Anybody want to give me private headers? I'm
little and nice!
Well, Apple released a couple of docs on Quartz 2D drawing,
which are linked to from
<
http://developer.apple.com/techpubs/macosx/CoreTechnologies/coretechnologies.
html> However, when they did this, I swear I remember seeing
below the Quartz 2D link an unlinked-as-of-yet reference to
Quartz Compositing, i.e. the window server. But now it's gone!
I hope it comes back soon, linked to all sorts of beautiful docs
about transforming windows. *stops daydreaming* :)
--
Brian Webster
email@hidden
http://www.owlnet.rice.edu/~bwebster