ChartDirector 6.2 (.NET Edition)

BaseChart.makeWebImage


Usage

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

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 or RazorChartViewer for sending the chart image to the browser.

The WebChartViewer or RazorChartViewer 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.