ChartDirector Ver 3.0 (C++ Edition)

PlotArea.setBackground2


Usage

void setBackground(const char *img, Alignment align = Center);

Description

Use the specified image file as the background image of the plot area.

The method will auto-detect the image file format using the file extension, which must either be png, jpg, jpeg, gif, wbmp or wmp (case insensitive).

Arguments

ArgumentDefaultDescription
img(Mandatory)The image file that is used as the background image of the plot area.
alignCenterThe alignment of the background image relative to the plot area. See Alignment Specification for supported alignment types.

Return Value

None