ChartDirector Ver 3.0 (Perl Edition)

DrawArea.affineTransform


Usage

affineTransform(a, b, c, d, e, f[, bgColor[, filter[, blur ]]])

Description

Perform affine transformation on the drawing surface.

An affine transformation is an operation where every pixel is copied to another pixel according to the formula.

xDest = a * xSrc + b * ySrc + c yDest = d * xSrc + e * ySrc + f

where (xSrc, ySrc) is a source pixel, and (xDest, yDest) is where it should go to.

Many graphics operation, such as translation, rotation, and resizing, can be considered as a special case of affine transformation.

Arguments

ArgumentDefaultDescription
a(Mandatory)See above for description.
b(Mandatory)See above for description.
c(Mandatory)See above for description.
d(Mandatory)See above for description.
e(Mandatory)See above for description.
f(Mandatory)See above for description.
bgColorFFFFFFThe background color used to fill destination pixels that are not mapped to any source pixels.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

Return Value

None