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:

Feature

Graphics Tips

All you wanted to know about graphics

Issue: 1.4 (February/March 2003)
Author: Thomas Reed
Author Bio: Thomas Reed has been programming as a hobbyist for more than 20 years, and fell in love with the Mac in 1984.
Article Description: No description available.
Article Length (in bytes): 9,213
Starting Page Number: 30
RBD Number: 1415
Resource File(s):

Download Icon 1415.sit Updated: Friday, October 17, 2003 at 12:20 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

Many kinds of applications can be built without understanding the details of graphics programming. However, most moderately serious programmers will eventually need to know more about graphics programming than just the DrawPicture command. This article will help you learn a variety of graphics-related tasks.

One of the most frequently asked questions about graphics is how to prevent unattractive flicker when drawing graphics. In Mac OS 9 and earlier, flicker occurs when two different things are drawn in the same space at nearly the same time. For example, if you call a Canvas' Refresh method, the Canvas will first be erased (by drawing the background over it), then its Paint event will trigger, drawing something else in that same space. To avoid flicker, you must draw into an intermediate Picture object. When that Picture contains exactly what you want displayed on the screen, you can draw it into the Canvas, overwriting the previous contents. This technique is called "buffered drawing."

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