Advertisement

Drawing with CoreGraphics

  • Bryan Costanich

Abstract

Up until this point, any graphics we’ve drawn have been intrinsically handled by the controls we’ve used. For example, we’ve created plenty of buttons, but we’ve never had to draw them ourselves. Sometimes, however, we need to do custom drawing beyond what the controls offer out of the box. For example, let’s say that you want to build a view that has a rounded rectangle border. You could do this with images, but for maximum configurability, you could draw the lines and corners using CoreGraphics. That way, you could vary the radius of the corners, as well as the color and thickness of the lines, without having to do new images every time.

Keywords

Color Space Color Pattern Coordinate Space Color Theory Portable Document Format 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Bryan Costanich 2011

Authors and Affiliations

  • Bryan Costanich

There are no affiliations available

Personalised recommendations