Re: CGContextClip and Passing Graphics Context
Re: CGContextClip and Passing Graphics Context
- Subject: Re: CGContextClip and Passing Graphics Context
- From: David Duncan <email@hidden>
- Date: Tue, 7 Nov 2006 17:07:00 -0800
On Nov 5, 2006, at 3:57 PM, Jordan Evans wrote:
But, when I use a path that is created from lines or arcs, it will not
clip it. All my paths are closed. No lines cross. I don't use
moveToPoint. So, even-odd rule doesn't apply here.
I took the code out of the child object's and put it in the view's
drawRect: method and it did clip as expected!
I'm not sure why this is happening? I'm I restricted from passing a
graphics context to child objects and expecting it to work?
If it works in the parent's draw method, it should work in the
child's draw methods. Are you sure you aren't using
CGContextSaveGState() and CGContextRestoreGState() somewhere in your
children's drawing? These could be resetting your clip path.
--
David Duncan
Apple DTS Quartz and Printing
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