giovaniluigi
Member
- Joined
- Jan 9, 2011
- Messages
- 16
- Programming Experience
- 5-10
Hi,
I'm doing an app like a car game.
I need to paint over a vector of points connected forming a line.
The paint is like a street.
Here is an example: I have a red trace that is the sight for drawing a street on it.
The origin of this red line is from GPS coordenates.
Here is a picture of what I'm talking about:
The problem is described by the image.
I need to rotate the rectangles to follow the line.
I did all using GDI+ Transformations, but this problem I don't know how to solve.
I can rotate one by one, but the more the design grows, the slower will be the application. I'm talking about thousands of points to form the line, because the code it's on the onPaint event of a picturebox.
Anyone can help me ?
Any ideas ? Please!
Thank you in advance.
I'm doing an app like a car game.
I need to paint over a vector of points connected forming a line.
The paint is like a street.
Here is an example: I have a red trace that is the sight for drawing a street on it.
The origin of this red line is from GPS coordenates.
Here is a picture of what I'm talking about:
The problem is described by the image.
I need to rotate the rectangles to follow the line.
I did all using GDI+ Transformations, but this problem I don't know how to solve.
I can rotate one by one, but the more the design grows, the slower will be the application. I'm talking about thousands of points to form the line, because the code it's on the onPaint event of a picturebox.
Anyone can help me ?
Any ideas ? Please!
Thank you in advance.