ChartDirector Ver 3.1 (PHP Edition Edition)

DrawArea.setAntiAlias


Usage

setAntiAlias([shapeAntiAlias[, textAntiAlias ]])

Description

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

ChartDirector supports independently specify how to anti-aliasing line, shapes and text. For anti-aliasing text, ChartDirector supports the following pre-defined constants.

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 unnessarily. 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
shapeAntiAliastrue (non-zero)A true (non-zero) value enables anti-alias when drawing lines and shapes. A false (zero) value disables anti-alias when drawing lines and shapes
textAntiAliasAutoAntiAliasThe text anti-alias mode. See above for description.

Return Value

None