Article Preview
Buy Now
COLUMN
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):
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.
Objectives
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.