• 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: Bezier Path Arc Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bezier Path Arc Problem


  • Subject: Re: Bezier Path Arc Problem
  • From: "Stephen Deken" <email@hidden>
  • Date: Tue, 3 Oct 2006 15:34:26 -0500

as you can see, the path i want is being stroked but around curves
there is an added squareness?

Your line is 10 pixels wide, but if you look at the size of the light area, you can see that it's only five pixels wide. The 'added squareness' is the rest of the stroke which is being drawn in the area that isn't clipped away by the graphics context.

You need to offset the rect before you calculate your path.  Something
like this will work:

    rect = NSInsetRect( rect, 5, 5 );

That will make the situation more clear.  You'll probably want to
change your stroke to be fully opaque instead of alpha:0.3.

--sjd;
_______________________________________________
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


  • Follow-Ups:
    • Re: Re: Bezier Path Arc Problem
      • From: "John Cassington" <email@hidden>
References: 
 >Bezier Path Arc Problem (From: "John Cassington" <email@hidden>)

  • Prev by Date: Bezier Path Arc Problem
  • Next by Date: Re: NSCell editing weirdness
  • Previous by thread: Bezier Path Arc Problem
  • Next by thread: Re: Re: Bezier Path Arc Problem
  • Index(es):
    • Date
    • Thread