Re: Re: Bezier Path Arc Problem
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