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

Re: Re: Bezier Path Arc Problem


  • Subject: Re: Re: Bezier Path Arc Problem
  • From: "John Cassington" <email@hidden>
  • Date: Wed, 4 Oct 2006 07:25:28 +1000

ok. that worked . thank you

but now when i redraw the view there are gaps in the transparency

see at: http://img424.imageshack.us/img424/6128/picture1sr1.png

at the moment i am using

[[NSColor clearColor] set];
NSRectFill([self frame]);

to clear the view, but it makes no differency if i use nseraserect either

any clues?

john

On 10/4/06, Stephen Deken <email@hidden> wrote:
> 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

_______________________________________________
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: Bezier Path Arc Problem
      • From: Stephen Deken <email@hidden>
    • Re: Bezier Path Arc Problem
      • From: Nick Zitzmann <email@hidden>
References: 
 >Bezier Path Arc Problem (From: "John Cassington" <email@hidden>)
 >Re: Bezier Path Arc Problem (From: "Stephen Deken" <email@hidden>)

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