Re: Bezier Path Arc Problem
Re: Bezier Path Arc Problem
- Subject: Re: Bezier Path Arc Problem
- From: Stephen Deken <email@hidden>
- Date: Tue, 3 Oct 2006 17:52:42 -0500
I'm not sure what it is that's the problem. The lower rect looks
fine to me. How did you draw that one?
Post your entire code again please.
Stephen Deken
email@hidden
On Oct 3, 2006, at 4:25 PM, John Cassington wrote:
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:
40gmail.com
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