ChartDirector 5.1 (.NET Edition)

BaseChart.makeWebImage


Usage

[VB] Public Function makeWebImage(format As Integer) As WebImage
[C#] public WebImage makeWebImage(int format);

Description

Generates the chart as a WebImage object.

The WebImage object is an internal object used by ChartDirector to represent the chart image. It can be assigned to a WebChartViewer control for sending the chart image to the browser.

The WebChartViewer control supports PNG, JPG, GIF, WBMP and BMP formats for sending the image to the browser. This is controlled by using the format argument, which can be one of the following predefined constants:

ConstantValueDescription
PNG0The PNG format.
GIF1The GIF format.
JPG2The JPEG format.
WMP3The WAP bitmap format.
BMP4The BMP format.

Arguments

ArgumentDefaultDescription
format(Mandatory)A constant representing the format of the image.

Return Value

A WebImage object representing the chart image.