PyObjC
Sections:
Home
Documentation
Development
Download
Examples
Mailing lists
Navigation:
- AddressBook
- Automator
- CalendarStore
- Cocoa
- CoreData
- InstallerPlugins
- InstantMessage
- PreferencePanes
- Quartz
- ScreenSaver
- SearchKit
- WebKit
 

We're hosted on:
SourceForge.net Logo

Subversion hosting

Examples for Quartz

PathDemo

Using CGContextBeginPath and related APIs

TLayer

A simple demo of Transparency Layers

CGRotation

CGRotation is a Cocoa application that demonstrates how to use the Current Transformation Matrix (CTM) to apply rotation, scaling and transformation to an image for display. It also demonstrates simple usage of ImageIO to load and save images and how to get the pixel data from a CGImageRef into an arbitrary buffer.

CGShading Demo

This is port to python of the "Cocoa CG shading demo" on ADC.

This is currently not a good example of how to program in Python, but does show that the CGShading API's work from Python.

Quartz2DBasics

This sample code introduces some of the concepts and features of Quartz. It contains code that:

  • fills then strokes a rectangle and strokes then fills a rectangle
  • creates a CGPath object and then paints that path with varying degrees of alpha transparency
  • draws the contents of a TIFF file using Quartz
  • draws the contents of a TIFF file using Quartz clipped by an elliptical shape
  • caches content using a CGLayer object and then draws using that cache
  • exports any of the above drawing to a PDF file
  • exports any of the above drawing as a PNG file

This is a translation of the Cocoa version of the ADC example with the same name.

CIBevelSample

Translation into python of and ADC example of the same name.

CIHazeFilterSample

Translation into python of and ADC example of the same name.

CIMicroPaint

A simple paint application using Core Image.

CITransitionSelectorSample

Image transitions using Core Image.

ImageBrowser

This sample demonstrates the ImageKit ImageBrowser in a basic Cocoa application. It uses IB to create a window an ImageBrowser and a zoom slider.

PDFKitViewer

A simple PDF viewer application using the PDFKit framework.

BasicDrawing

A python version of the BasicDrawing example in the book "Programming with Quartz". This shows how to use most of the core API's in Quartz/CoreGraphics.

CocoaDrawingShell

A python version of the CocoaDrawingShell example in the book "Programming with Quartz". This shows how to use most of the core API's in Quartz/CoreGraphics in a Cocoa application.

Chart

A simple application that displays a barchart using Quartz Composer.

Copyright © 2003 - 2008 The PyObjC Project