Question

I need that to program polygon-fill with Scanline algorithm.

but how i still don't know how to get coordinates of mouseclick and save this in list then get next point and do the same and i don't know how many times i will need to do that

Was it helpful?

Solution

Capture the MouseUp event instead of the Click event. MouseUp event has a MouseEventArgs that contains the X, Y coordinates.

OTHER TIPS

In MouseClick event handler MouseEventArgs contain x and y coordinates of mouse cursor. Coordinates are control related.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top