Point Image
Posted: Fri May 30, 2014 10:24 am
I need to show a point with attached shape. kindly confirm how can i implement this using teechart.
You can use the image itself in an ImagePoint series, or draw it directly onto the canvas, e.g.amol wrote:I need to show a point with attached shape. kindly confirm how can i implement this using teechart.
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
ImagePoint point = new ImagePoint(tChart1.Chart);
point.PointImage = Image.FromFile(@"C:\tmp\1.png");
point.Pointer.HorizSize = 30;
point.Pointer.VertSize = 20;
point.FillSampleValues();
tChart1.AfterDraw += tChart1_AfterDraw;
}
void tChart1_AfterDraw(object sender, Graphics3D g)
{
g.Draw(Utils.FromLTRB(10, 10, 70, 50), Image.FromFile(@"C:\tmp\1.png"), true);
}
I'm not sure what the problem is here. The following code works as expected, with the series title being correctly displayed in the legend:amol wrote:I am not able to give the title of ImagePoint, plz answer this.
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
ImagePoint point = new ImagePoint(tChart1.Chart);
point.PointImage = Image.FromFile(@"D:\tmp\1.png");
point.Pointer.HorizSize = 30;
point.Pointer.VertSize = 20;
point.FillSampleValues();
point.Title = "My Point";
tChart1.Legend.LegendStyle = LegendStyles.Series;
}
I'm sorry, I'm afraid I don't understand your request. Could you please provide some code to show me what you need?amol wrote:Hi ,
I have taken Point not taken ImagePoint and coded then how can i achieve this using Point. plz suggest.