Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

Feature

Vector Graphics

Issue: 3.2 (November/December 2004)
Author: Joe Strout
Author Bio: Joe Strout dabbles occasionally with programming stuff.
Article Description: No description available.
Article Length (in bytes): 16,635
Starting Page Number: 17
RBD Number: 3210
Resource File(s): None
Related Web Link(s):

http://astronomy.swin.edu.au/~pbourke/curves/bezier/

Known Limitations: None

Excerpt of article text...

REALbasic has a set of classes for manipulating graphic elements in an object-oriented way. Each object can be scaled, rotated, and configured, independently or in groups.

These objects are represented mathematically, rather than as a set of pixels; this representation is known as "vector graphics." Vector graphics have a number of advantages over pixel (or "raster") graphics. First, vector images can be scaled arbitrarily, without causing any jaggies or fuzziness around the edges. This is especially important when printing, where an image goes from a 72-dpi screen to a 1200-dpi printout. They can also be rotated without losing information. Finally, because the various components of a vector image are just objects, they can be broken apart and manipulated individually.

Vector graphics are ideal for things like block diagrams, charts, and graphs -- anywhere you need graphics composed mainly of simple elements with nice clean lines. However, you may also use the vector graphics classes just to get a little more power for your traditional drawing. For example, if you need to draw a rotated string or picture, then vector graphics are the only way to do it in native RB.

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