Computer Graphics

Moderators: Sephiroth
Number of threads: 1263
Number of posts: 2665

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Get position array following a line Posted by nattsurf123 on 12 Jun 2009 at 6:21 AM
(Voting Closed)
0 Votes
 0%
0 Votes
 0%
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.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.