rubyquartz
http://rubyquartz.rubyforge.org/
http://rubyforge.org/projects/rubyquartz/


== DESCRIPTION:

Ruby Quartz is a bridge that allows Ruby programs to access the Mac OS X Quartz
graphics libraries.

Ruby Quartz is licensied under a BSD license, see the COPYRIGHT file for more
information.

More information on the project home page: http://rubyquartz.rubyforge.org.

== FEATURES/PROBLEMS:

Wraps some of the CoreGraphics layer of Quartz as well as some of the Cocoa text
layout system.

Doesn't currently cover all of the API, and it may never cover some of it.
Doesn't yet cover CoreImage or PDFKit, but these are obvious additions.

== SYNOPSYS:

require 'rubyquartz'

rgb = Quartz::ColorSpace.new(:name => ColorSpace::GENERIC_RGB)
ctx = Quartz::BitmapContext.new(100, 100, :colorspace => @rgb, :alpha => Bitmap::ALPHA_PREMULTIPLIED_FIRST)
# drawing commands
ctx.copy_image.png_data # or other extraction API

== REQUIREMENTS:

Mac OS X 10.4.X or greater
ruby 1.8.X or greater

== INSTALL:

$ ruby extconf.rb
$ make
$ sudo make install

== LICENSE:

(based on the MIT License)

Copyright (c) 2006,2007, The Omni Group, Inc. All rights reserved.

OPEN PERMISSION TO USE AND REPRODUCE OMNI SOURCE CODE SOFTWARE

Omni Source Code software is available from The Omni Group on their web
site at www.omnigroup.com.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

Any original copyright notices and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.