GrafX-Design.com
Home Tutorials Reviews Email Us
GrafX-Design.com
 tutorials | resources | inspiration 

General Graphics Tutorials -- Anti-aliasing




Anti-aliasing

Before I explain what anti-aliasing is I'll cover aliasing. These two subjects are, of course, closely related. People almost never discuss aliasing, though. Before I discuss the two let me say that aliasing causes images to have a jagged staircase look to their edges while anti-aliasing smoothes out these jagged edges.

Aliasing

Aliasing is what happens when analog data is represented on a digital system. A curved line drawn on a grid, where the curved line represents the analog data and the grid represents the digital system, is a good example of analog data on a digital system (see figure 2.1)

figure 2.1
figure 2.1
Line on grid representing analog data on digital system



When the analog data is converted to digital some problems arise. The digital system in this example is the grid. To convert the analog line to a digital line each point in the grid may either represent a point in the line, by being filled in, or represent an area where the line does not exist, by remaining white. There can't be a square that is only partly filled. Each square must be either filled in or not. In other words, to draw the line in digital format we need to completely fill in any square that a portion of the line passes through. That's all part of it being digital.

Okay no problem, right? The line goes through the different squares so we'll fill in each square that the line goes through. Figure 2.2 shows what the line looks like when we do this. Not very smooth, is it? We no longer have curves; all we have is a choppy line made up of squares and rectangles.

figure 2.2
figure 2.2
Digital version of line



The same thing will happen to, for example, any aliased text you display on your web pages. Figure 2.3 is an aliased 'W' and figure 2.4 is the same letter created with the anti-aliasing option turned on.

figure 2.3
figure 2.3
Aliased 'W'





figure 2.4
figure 2.4
Anti-aliased 'W'



Notice how smooth figure 2.4 is compared to figure 2.3.

Is There a solution?

Yep! It comes in the form of ta-da… anti-aliasing. What anti-aliasing attempts to do is, using mathematics, fill in some of the digital system with colors that are in-between the two adjoining colors. In this case a medium gray would be between the black and the white. Some gray squares placed in the grid might help soften up the "jaggies" (see figure 2.5).

figure 2.5
figure 2.5
Anti-aliased line



Keep in mind that this example was hand drawn and that the resolution of your computer screen make this seem like it's not really an improvement.

To give you a better idea of aliased versus anti-aliased, then, here are a couple of lines drawn with Photoshop. The first, figure 2.6 is aliased.

figure 2.6
figure 2.6
Aliased line drawn with Photoshop



Figure 2.7 is an anti-aliased line drawn in Photoshop.

figure 2.7
figure 2.7
Anti-aliased line drawn with Photoshop



So there'll be no mistaking the difference, figures 2.8 and 2.9 are the aliased and the anti-aliased lines blown up 500%.

figure 2.8
figure 2.8
Aliased line at 500%





figure 2.9
figure 2.9
Anti-aliased line at 500%



Notice the jagged appearance of the line in figure 2.8 while the line in 2.9 is smooth. Of course, at this resolution, the line in figure 2.9 seems a little blurry. This is something else to consider when using the anti-aliasing option for your graphics. The fuzziness can be especially problematic with text. Because text, as well as the rest of an image, is generally anti-aliased when ever it is resized, or re-sampled, you may want to add text only after you have decided on the final size of your image. This will help keep your text more readable.

Decisions, decisions

As with anything else there are advantages and disadvantages to anti-aliasing. For example, because anti-aliasing introduces more colors into an image it stands to reason that an anti-aliased version of an image can be somewhat larger than its aliased counterpart. Another problem arises with very small text. When text is really small the anti-aliasing tends to blur the letters making them hard to read on some monitors. Again this is something that you'll have to examine and make a decision about on an image by image basis.


Be sure to check out some of our other general graphics tutorials.


High Quality video-based tutorials

...with over 300 different titles, all taught by professionals. Learn any application in a fraction of the time right from your own desktop. This unique method offers accelerated learning and a high retention rate. Here are a couple of topics that you might find interesting. View free demos of the courses using one of the links listed below.
Photoshop CS2 Tutorials Photoshop Special FX
Photoshop for the Web Photoshop for Photographers
Photoshop CS Tutorials Photoshop Image Artistry
Photoshop Image Restoration Photoshop 7 Tutorials

CorelDRAW Graphics Suite X3 Tutorials CorelDRAW Graphics Suite 11 Tutorials
CorelDRAW 10 Tutorials CorelDRAW 9 Tutorials


Previous Web Graphics Tutorial General Web Graphics Tutorials Next Web Graphics Tutorial
[Previous Tutorial]  [Web Graphics Tutorials]  [Next Tutorial]




We'd like to hear from you... If there are any web graphics techniques you'd like to see covered, send us an e-mail.

 

Current Favorites

Here's of list of our most popular graphics tutorials:

Adobe Photoshop Tutorials

Quick Mask Have you ever wanted to do a little cutting and pasting and make it look as if your head was on someone else's body? Read more....

Corel (JASC)
Paint Shop Pro Tutorials

Transparent GIFs This technique demonstrates how to create transparent GIFs in Paint Shop Pro Read more....


Xara Xtreme Pro Tutorials

Illustrating a Guitar - Part 1 It may seem to be quite an undertaking to create a realistic illustration of something like an electric guitar, but I wanted to challenge the ease-of-use of this software. Read more....


Corel DRAW! Tutorials

Creating Complex Shapes Drawing circles, squares, triangles , etc. is easy with a vector program. How do you combine these shapes to create something more complex, though? Follow this tutorial and you'll see how easy it can be to create just about any shape you need. Read more....

Software Deals

Download and try out the free demos and then save 10%, 20% and more when you decide to buy!

GrafX-Design.com
has partnered with some of the best graphics software companies in the World to offer you terrific savings on your favorite programs.

AlienSkin


Photoshop Plugins
AlienSkin Software - They will never wear suits! We've been using AlienSkin's Photoshop Plug-ins for over a decade and they are still our favorites.

AutoFX


Photoshop Plugins

Xara 3D


Create amazing, high-quality 3D graphics easily!

Read our review of Xara 3D 6 or click the graphic below to download a free trial version.


GrafX-Design.com



Comments/Questions   ||   Copyright © 1996-2009 GrafX-Design.com -- All rights reserved   ||   Privacy