Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: interactions between CGContextSetLineCap and CGContextSetLineDash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interactions between CGContextSetLineCap and CGContextSetLineDash





Nick Nallick wrote:


On Dec 2, 2004, at 5:00 PM, Travis Heppe wrote:

Is it possible to use a butt cap for the interior dashes, but a square or round cap at the very start and end of the dashed lines?


Not when drawing a standard line. I suppose you could draw a second and third line over the ends of the first to get that effect (provided you weren't using any transparency). Otherwise I suppose you could do your own dashes by clipping out the gaps in the line.

thanks for the response. We have our own code to break thick lines down into polygons (needed for less capable graphics systems, like GDI ;-0). I'll just send it down that path when the endcap is something other than a butt. Seems like it would be a useful feature in quartz, though.

-Travis




_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >interactions between CGContextSetLineCap and CGContextSetLineDash (From: Travis Heppe <email@hidden>)
 >Re: interactions between CGContextSetLineCap and CGContextSetLineDash (From: Nick Nallick <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.