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:

Beginner's Column

Welcome to the REALbasic Developer Magazine Beginner's Corner!

Issue: 1.5 (April/May 2003)
Author: Thomas J. Cunningham
Author Bio: Thomas is a hobbyist programmer and enjoys sharing the RB loving with others... His online RB Beginner tutorial has had over 17,000 hits!
Article Description: No description available.
Article Length (in bytes): 8,571
Starting Page Number: 28
RBD Number: 1514
Resource File(s):

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

Related Link(s): None
Known Limitations: None

Excerpt of article text...

As promised, this month's column will continue with basic drawing concepts in RB. Last month we discussed pixels, resolution, color depth, and we explored a few methods of the Graphics class.

Graphics As A Layer

When I first started using RB, I wanted to be able to draw things using my computer. Sounds easy, but drawing to a computer can be a bit confusing, so let me introduce a concept that helped me get over the hump with drawing in RB: a bit of semantics. Remember that we are discussing the Graphics class.

When we speak of a graphics property, it is usefule to substitute the word "layer" for the word "property." We draw things to a graphics layer. Think of this layer as a thin sheet of clear plastic. Some classes come with this plastic sheet. A window, for example, has a graphics layer: our thin sheet of plastic to which we can draw. Most classes do not have a graphics property that we can use. A StaticText class, for example, does not have a graphics property (well, it does, since it is drawn to our screen, but RB does not give us access to its property).

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