ChartDirector 5.1 (.NET Edition)

BaseChart.setBgImage


Usage

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

Description

Uses the image from the specified file as the background image of the chart.

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 chart.
alignCenterThe alignment of the background image relative to the chart. See Alignment Specification for supported alignment types.

Return Value

None