• 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
CGContextClip Works with Rect Paths, but not with Arc Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGContextClip Works with Rect Paths, but not with Arc Paths


  • Subject: CGContextClip Works with Rect Paths, but not with Arc Paths
  • From: "Jordan Evans" <email@hidden>
  • Date: Sun, 5 Nov 2006 14:25:35 -0800

When I use the the exerpt code below with CGContextAddRect commented
in and I draw outside that rect, the drawing is clipped as I expect.
But, it is not clipped when I comment in the CGContextAddArc.  Anyone
know what is going on?

	CGContextBeginPath (context);
	// CGContextAddRect(context, CGRectMake(0,0,100,100));
	CGContextAddArc( context, 0, 0, 200, 0.0, 3.14, NO);
	CGContextClosePath (context);
	CGContextEOClip (context);

      // Drawing outside the clipped path here is only clipped with
the rect vs. the arc clip.
_______________________________________________
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: CGContextClip Works with Rect Paths, but not with Arc Paths
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Re: Setting icon with make file
  • Next by Date: General development tips
  • Previous by thread: Formatting display patterns
  • Next by thread: Re: CGContextClip Works with Rect Paths, but not with Arc Paths
  • Index(es):
    • Date
    • Thread