hi,
i have a rounded graphics object (bitmap) that i want to paint on a line value. is there a tutorial on custom paining on a line\chart?
custom painting on a chart
custom painting on a chart
Last edited by ido on Tue May 20, 2008 9:28 am, edited 1 time in total.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi idan,
Yes, please have a look at Tutorial 13 - Custom drawing on the Chart Panel available at TeeChart's program group.
Yes, please have a look at Tutorial 13 - Custom drawing on the Chart Panel available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
one more question...
I need to paint a bitmap object and on a specific point on a line which the tutorial doesn't reffer to. is there a way to do so?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi idan,
In that case you could try using something like this:
In that case you could try using something like this:
Code: Select all
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
g.Draw(xPos, yPos, myImage);
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
what if the values are double?
what if the values are double and not int?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi idan,
You should convert them to screen postion coordinates (int) using given methods, for example:
or
You should convert them to screen postion coordinates (int) using given methods, for example:
Code: Select all
int xPos = tChart1.Axes.Left.CalcPosValue(1500);
Code: Select all
int xPos = tChart1.Series[0].CalcXPos(5);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |