ChartDirector 7.1 (C++ Edition)

PlotArea.setBackground2


Usage

void setBackground(const char *filename, int align = Center);

Description

Uses the image from the specified file or resource as the background image of the plot area.

Arguments

ArgumentDefaultDescription
filename(Mandatory)The pathname of the image file or resource, which must be of PNG, JPG or GIF format. Please refer to Path Specification on how ChartDirector interprets pathnames.
alignCenterThe alignment of the background image relative to the plot area. See Alignment Specification for supported alignment types.

Return Value

None