Obtains a Bitmap of the legend generated by the chart.
[Visual Basic]
Public Function GetLegendBitmap() As Bitmap
[C#]
public Bitmap GetLegendBitmap();
[JScript]
public function GetLegendBitmap() : Bitmap;
Return Type
A Bitmap of the legend.
Remarks
When invoked, the Point properties of all elements
drawn on the chart will be populated.
Example
[C#]
[C#] //Save the legend as a separate image file System.Web.UI.WebControls.Image ImageLegend = new System.Web.UI.WebControls.Image(); ImageLegend.ImageUrl = Chart.FileManager.SaveImage(Chart.GetLegendBitmap()); Controls.Add(ImageLegend); //For complete code see SaveLegendImage.aspx sample |
[C#]
[Visual Basic] ' Save the legend as a separate image file Dim ImageLegend As System.Web.UI.WebControls.Image = new System.Web.UI.WebControls.Image() ImageLegend.ImageUrl = Chart.FileManager.SaveImage(Chart.GetLegendBitmap()) Controls.Add(ImageLegend) 'For complete code see SaveLegendImage.aspx sample. |
See Also
Chart Class
| Chart Members
2002 - 2004 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.