Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

The Interface Designer

Made in the Shade

Using Core Graphics in a REALbasic Project

Issue: 5.6 (September/October 2007)
Author: Toby Rush
Article Description: No description available.
Article Length (in bytes): 10,319
Starting Page Number: 46
RBD Number: 5618
Resource File(s): None
Related Web Link(s):

http://developer.apple.com/documentation

Known Limitations: None

Excerpt of article text...

One of the few places where REALbasic has not quite kept up with the cutting edge is in the graphics department. To create graphics, REALbasic uses an API designed around QuickDraw -- a technology that is actually older than the Macintosh itself. Though its power and capability have made it a viable solution for more than 20 years, the QuickDraw technology is being replaced in Mac OS X by Quartz, which is part of the modern graphics system referred to as "Core Graphics."

Core Graphics has some very nice capabilities that QuickDraw lacks, including dealing very naturally with varying levels of transparency. But since REALbasic's graphics commands are based on QuickDraw, accessing these Quartz-ey goodies will take a little extra work and some tinkering under the hood.

By tinkering under the hood, of course, I mean calling the Core Graphics toolbox functions directly, and to do that, we need to use REALbasic's Declare statement. So put on some overalls that you don't mind getting dirty, grab a hard hat, and let's get to work!

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com