• 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
iOS: drawing the end of a CGPath differently
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS: drawing the end of a CGPath differently


  • Subject: iOS: drawing the end of a CGPath differently
  • From: Nathan Sims <email@hidden>
  • Date: Fri, 03 Jun 2011 10:16:11 -0700

How would I go about drawing a terminus at the end of a path? I'm drawing a path in an overlay to a MKMapView, but I would like to somehow designate the end point of the path to differentiate it from the rest of the path.

        CGContextAddPath(context,path);
        CGContextSetRGBStrokeColor(context,0.0f,0.0f,1.0f,0.5f);
        CGContextSetLineJoin(context,kCGLineJoinRound);
        CGContextSetLineCap(context,kCGLineCapRound);
        CGContextSetLineWidth(context,lineWidth);
        CGContextSetShadow(context,offset_size,0.0);
        CGContextStrokePath(context);
        CGPathRelease(path);

Is there some kind of CGHighlightEndPointOfPath() call or its equivalent?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iOS: drawing the end of a CGPath differently
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Programmatically displaying UISplitViewController popover?
  • Next by Date: Re: iOS: drawing the end of a CGPath differently
  • Previous by thread: Re: NSTerminateLater and thread
  • Next by thread: Re: iOS: drawing the end of a CGPath differently
  • Index(es):
    • Date
    • Thread