Get position array following a line - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Get position array following a line

I'm trying to do basic GDI animations with bitmaps. What I want to do is make a bitmap move towards a point.
I want the bitmap move in small steps towards this point.
So what I really want to know is how I can get a Point array of all the small steps to this position so I can redraw anything on each position.

I think if I where to make this a function it would have this look. I can't figure out how to make the logic.

Point[] GetLineSteps(Point startxy, Point stopxy)
{

Return LineSteps;
}

Appreciate your help.
Sign In or Register to comment.