Graphics and Animation on iOS by Vandad Nahavandipoor

Graphics and Animation on iOS by Vandad Nahavandipoor

Author:Vandad Nahavandipoor [Vandad Nahavandipoor]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming / Apple Programming
ISBN: 9781449305666
Publisher: O'Reilly Media
Published: 2011-04-26T16:00:00+00:00


Adding Shadows to Shapes

It is easy to draw shadows using Core Graphics. The graphics context is the element that bears the shadow. What that means is that you need to apply the shadow to the context, draw the shapes that need the shadow, and then remove the shadow from the context (or set a new context). We will see an example of this soon.

In Core Graphics, we can use two procedures to apply a shadow to a graphics context:

CGContextSetShadow procedure

This procedure, which creates black or gray shadows, accepts three parameters:

The graphics context on which the shadow has to be applied.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.