![]() |
|
Anti-Aliased ScalingAnti-aliasing is a method of drawing text or pictures which smooths edges, and avoids jagged edges ("jaggies").In this article we'll discuss anti-aliasing as applied to scaling down (shrinking) bitmap images. Imagine that we have a bitmap such as this picture:
If we look at the bitmap on a larger scaling (enlarging so that you can see the individual pixels), it might look something like this:
Now imagine that we wish to scale that bitmap down to a smaller size. To achieve this, each pixel would need to cover a larger area:
However, if you look at the above diagram, you will see that many pixel cells contain more than one color. In our final image however, each pixel can only contain one color, so we need to do a bit more work. One simple way to achieve this task, might be simply to pick one of the colors in each pixel cell (perhaps the predominant color in each cell). This is approach (not anti-aliased) would produce an image that looked like this:
While this approach works, and produces a nice sharp image, it also loses a lot of detail (for example, if you look at the pink stripes in the cake, you will notice gaps where the pink color has disappeared completely). Additionally, as you can see, it does look a little bit jagged (see "Jaggies"). An alternative idea would be to average the colors in each pixel cell (anti-aliasing), producing an image like this:
This time, it doesn't look jagged, but it does (to some eyes at least), look a little blurred. This difference will become clearer when we compare the images at their final sizes. Returning to normal size, let's see what the final result is
Related Pages on this site:
Related Books:
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Privacy Terms Of Use Copyright © 2005-2008, Answers 2000 Limited With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical. In Association With Amazon.com All trademarks are property of their respective owners. All third party content and adverts are copyright of their respective owners. Some graphics on our web sites are Copyright (C) 1997-2000 Hemera Technologies Inc., and used under license. All such pictures are provided for viewing purposes only and are not to be saved or downloaded. All such pictures of recognizable individuals are models and used for illustrative purposes only, and not meant to imply any association or endorsement of said individual with any product or service. |