Update 7/02/18 (The Quartz API has undergone some radical changes over the years. We're updating our popular Core Graphics series to work well with the current version of Swift, so here is an update to the third installment.)In medias res? Check out Part 1 and Part 2 of our posts on Core Graphics.** Consider the humble line: just a straight sequence of pixels connecting two points. There are well-known algorithms you can use to do your own drawing, but these days, we have toolkits to do the hard work. In Core Graphics, a line is just a kind of path. Paths are central to many Core Graphics features, and next time you'll get a lot of path information. But for now, think of lines as sequences of line segments that are stroked (not filled). There are a bunch of general GState parameters that affect lines (color, line width, shadows, transforms) as well as GState values dedicated to drawing lines. All of the line images you see here were created by GrafDemo. You can find the source over on Github.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

iOS,Mac