• 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: Round Corners With BezierPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Round Corners With BezierPath


  • Subject: Re: Round Corners With BezierPath
  • From: Heinrich Giesen <email@hidden>
  • Date: Thu, 24 Aug 2006 09:16:05 +0200


On 24.08.2006, at 02:03, Dan Messing wrote:

That one seems overly complicated.

and proposes a solution using the method: appendBezierPathWithArcWithCenter:radius:startAngle:endAngle: see also: <http://www.cocoabuilder.com/archive/message/cocoa/2001/8/28/39916>

I prefer a simpler method, see:
<http://www.cocoabuilder.com/archive/message/cocoa/2005/4/11/132889>
which does not need to compute angles:
    appendBezierPathWithArcFromPoint:toPoint:radius:
This method does the same but also allows to not only draw rects with
rounded corners but also to draw any polygon with rounded corners.

For a good description read a PostScript book for the operator arcto

   Heinrich


-- Heinrich Giesen email@hidden


_______________________________________________ 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
  • Prev by Date: Links in NSTextField
  • Next by Date: Tiger apps on Panther
  • Previous by thread: Re: Round Corners With BezierPath
  • Next by thread: Loading an URL in Safari
  • Index(es):
    • Date
    • Thread