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.
|







