ChartDirector 6.0 (C++ Edition)

DrawArea.sphereTransform


Usage

void sphereTransform(int xDiameter, int yDiameter, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1);

Description

Wraps the drawing surface onto a sphere or ellipsoid.

Arguments

ArgumentDefaultDescription
xDiameter(Mandatory)The horizontal diameter of the sphere or ellipsoid in pixels.
yDiameter(Mandatory)The vertical diameter of the sphere or ellipsoid in pixels.
bgColorFFFFFFThe background color used to fill the space left after transformation.
filterLinearFilterThe filter to use for re-sampling.
blur1The blur factor to use for re-sampling.

Return Value

None