ChartDirector 6.2 (.NET Edition)

PlotArea.setBackground2


Usage

[C#] public void setBackground2(string img [, int align ]);
[VB] Public Sub setBackground2(img As String [, align As Integer ])

Description

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

ChartDirector will automatically detect the image file format using the file extension, which must either png, jpg, jpeg, gif, wbmp or wmp (case insensitive).

Please refer to BaseChart.setSearchPath on the directory that ChartDirector will search for the file.

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