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 20 in printed book and digital formats -- plus a one-year subscription (beginning with 21.1) 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.1


Building a Graphics Library that Directly Extends the Picture Object

Issue: 3.1 (September/October 2004)
Author: Didier Barbas
Author Bio: Didier has been a dilettante programmer and linguist for more than 20 years. Unusual for a Frenchman, he speaks 11 languages, including Korean and PowerPC machine-language.
Article Description: No description available.
Article Length (in bytes): 7,581
Starting Page Number: 46
Article Number: 3122
Resource File(s):

Download Icon 3122.zip Updated: 2013-03-11 19:07:58

Related Link(s): None

Excerpt of article text...

In a previous issue (2.3) we saw how to speed up graphic operations like rotation. It did require a bit of coding, but proved to be quite fast. A faithful reader of this column actually used the code and tips for a real-life application, and we have worked together in order to make it even faster and more readable. Some of the things we did together will serve as a basis for this article.


We will produce a basic graphics library that'll extend the Picture object, making the library more portable and the code using it more readable. We will also make full use, when possible, of the .Transform method of the RGBSurface object. This method, which provides a very fast way of mapping colors and applying transformations based on the mappings, proves to be very convenient in some cases.

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