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 second installment.) In medias res? Check out part one of our posts on Core Graphics. The context lies at the heart of Quartz: you need to interact with the current Core Graphics context in some manner to actually draw stuff, so it's good to get comfortable with it, what it does, and why it's there. One fundamental operation in Core Graphics is creating a path. A path is a mathematical description of a shape. A path can be a rectangle, or a circle, a cowboy hat, or even the Taj Mahal. This path can be filled with a color—that is, all points within the path are set to a particular color. The path can also be outlined, a.k.a. stroked. This is like taking a calligraphy pen and drawing around the path leaving an outline. Here's a hat that's been stroked, filled, and then both filled with yellow and stroked in blue: As you can see, the actual outline can get pretty complex.


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