Overload List
public abstract Void Draw(System.Int32, System.Int32, System.Drawing.Image)
public abstract Void Draw(System.Drawing.Rectangle, System.Drawing.Image, System.Boolean)
public abstract Void Draw(System.Drawing.Rectangle, System.Drawing.Rectangle, System.Drawing.Image, System.Boolean)
public abstract Void Draw(System.Drawing.Rectangle, System.Drawing.Rectangle, System.Drawing.Image, System.Int32)
Paints the image in rectangle r.
public abstract Void Draw(System.Drawing.Rectangle, System.Drawing.Image, Steema.TeeChart.Drawing.ImageMode, System.Boolean)
Remarks
Use the Draw method to paint the Chart in your preferred Drawing Canvas and region.
It can also be used to Print the Chart in a customized way:
Or you can use the TeeChart Draw method to render an image at any location. See example below;
Example
[C#]
private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)The above code renders an image at a fixed location, but the TeeChart Axes and Series CalcXPos and CalcYPos methods return point and value locations on the Chart according to the data. Stepping through Series values in OnAfterDraw and replacing the render location co-ordinates will enable you to place images at data points, etc. See the TeeChart 'Custom Drawing' Tutorial for more detail about using CalXPos/CalcYPos.
tChart1.Graphics3D.Draw(new Rectangle(20,20,80,80),imageList1.Images[1]);
See Also
Graphics3D Class | Graphics3D Members | Steema.TeeChart.Drawing Namespace