1This sample code introduces some of the concepts and features of Quartz. It contains code that: 2 3* fills then strokes a rectangle and strokes then fills a rectangle 4* creates a CGPath object and then paints that path with varying degrees of alpha transparency 5* draws the contents of a TIFF file using Quartz 6* draws the contents of a TIFF file using Quartz clipped by an elliptical shape 7* caches content using a CGLayer object and then draws using that cache 8* exports any of the above drawing to a PDF file 9* exports any of the above drawing as a PNG file 10 11This is a translation of the Cocoa version of the ADC example with the same name. 12