VariablePackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Moderately revised from 9.0.
9.0 version

*antialiasing*

This variable has an effect only on the Windows platform.

When this variable is true, drawing and filling functions such as draw-line, draw-ellipse, and fill-polygon will draw straight and curved lines and edges using antialiasing. And draw-string-in-box will draw antialiased text.

This technique produces smoother-looking lines and edges by using a variety of colors for edge pixels to interpolate between the foreground and background colors.

The default value is nil. Typically you would bind this variable to true around a block of drawing code where antialiasing is desired. Or this variable could simply be set to true if the effect is desired everywhere.

Caveats: Antialiased drawing is generally somewhat slower than otherwise, though not by a lot with a decent video adapter. Antialiased text looks fuzzier than non-antialiased, though is perhaps easier on the eyes. Antialiasing appears to have no effect on non-TrueType fonts.

You can't feasibly bind this variable around the drawing of widgets, which draw themselves asynchronously, so some widgets that are drawn by Lisp provide the antialias-lines and antialias-text properties for this.

See *color-gradient-filling* and *alpha-blending* for other appearance-enhancing effects.


Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page has had moderate revisions compared to the 9.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Moderately revised from 9.0.
9.0 version