Re: Round Rect
Re: Round Rect
- Subject: Re: Round Rect
- From: Henry McGilton <email@hidden>
- Date: Wed, 29 Mar 2006 19:17:32 -0800
On Mar 29, 2006, at 5:51 PM, Gregory Weston wrote:
John C. Randolph wrote:
On Mar 29, 2006, at 6:00 AM, Valerio Ferrucci wrote:
how can I draw a round rect in cocoa?
From the list archives:
http://lists.apple.com/archives/Cocoa-dev/2001/Aug/msg01710.html
The traditional Mac OS RoundRect has elliptical corners,
though, rather than circular. Here's the implementation I use.
Well, I was following this thread in a desultory fashion until
your statement about traditional RoundRect has elliptical corners
caught my eye.
(1) Is that true even for 'rectangles' that are actually square?
(2) Do the x and y radii of the ellipse vary with the width and
height of the rectangle?
If the answers to (1) and (2) are affirmative, perhaps another
approach is to draw a unit path and scale it with an
appropriate affine transform . . .
Cheers,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden