Re: Scaling
Re: Scaling
- Subject: Re: Scaling
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 26 Aug 2001 21:23:27 +0100
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!
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.
Oh, how AWFUL! They couldn't possibly ship it with a bad-looking
wastebasket icon. Hey, put that optimization on hold, the wastebasket
doesn't look nice! Come on, guys, get your priorities right.
-- Finlay
References: | |
| >Re: Scaling (From: "John C. Randolph" <email@hidden>) |