Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 3.2

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): 17,914
Starting Page Number: 17
Article Number: 3210
Related Web Link(s):

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

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.

The vector graphics classes may seem a little harder than the traditional Graphics methods at first, but the design is consistent and elegant. Once you get the hang of it, you may find you prefer to use them for all your 2D drawing needs.

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