1.

Solve : GDI+ Slowly??

Answer»

So I have my command for drawing a line in GDI+ for visual basic .net

In this case I am drawing a graph and have a huge set of points through an array of x() and y() and this is one of my code lines -

scr_graphics.DrawLine(mypen, x(0), y(0), x(1), y(1))

The program works cool, but how MIGHT I make it so that it draws the line slowly, RATHER than it being instantly there? So maybe over a period of 3 SECONDS it draws the line?

thanks
BonesYou might try drawing the line in segments and using a LOOP to calculate the start and end points of each segment. By using the thread.sleep method you could introduce a delay between segments.

Good luck.



Discussion

No Comment Found