ChartDirector 5.1 (.NET Edition)

DrawArea.setAntiAlias


Usage

[VB] Public Sub setAntiAlias([ shapeAntiAlias As Boolean [, textAntiAlias As Integer ]])
[C#] public void setAntiAlias([ bool shapeAntiAlias [, int textAntiAlias ]]);

Description

Controls whether anti-alias is used when drawing lines, shapes and text.

For anti-aliasing text, ChartDirector supports the following modes.

ConstantValueDescription
NoAntiAlias0Disable anti-alias when drawing text
AntiAlias1Always use anti-alias when drawing text
AutoAntiAlias2Automatically determine if anti-alias should be used for the text. This is the default.

Currently, ChartDirector will anti-alias only large or bold fonts. For small fonts, assuming it is of high quality, anti-alias is unnecessary. It is because high quality fonts are normally designed to be sharp and clear at low resolution. Anti-aliasing will blur the fonts and make them look worse.

However, for complicated fonts (e.g. some fonts with oriental characters), or for lower quality fonts (e.g. some freeware fonts), anti-alias may be necessary. In this case, it may be needed to force anti-aliasing of all fonts using AntiAlias mode.

Arguments

ArgumentDefaultDescription
shapeAntiAliastrueA true value enables anti-alias when drawing lines and shapes. A false value disables anti-alias when drawing lines and shapes
textAntiAliasAutoAntiAliasThe text anti-alias mode, which must be one of AutoAntiAlias, AntiAlias or NoAntiAlias.

Return Value

None