AggPas - Anti-Grain Geomertry for Object Pascal

TAgg2D.AntiAliasGamma(g)

Description

Changes the value of Anti Alias Gamma correction.

Gamma correction means doing graphics color math accounting for the distortion that the color will eventually go through when displayed on a monitor.

Phosphors of monitors don't react linearly with the intensity of the electron beam. If they did, a linear input ramp would result in linear light intensity. Instead, the input value is effectively raised to an exponent called gamma.

You can read a whole article related to gamma issues in AGG here.

Default gamma in TAgg2D is 1.

Parameters

g: double

A new Gamma correction coefficient [0.1..3~4]

Example

For Gamma correction demo see the example for TransformImage.