The crosses that you see in the attachment are drawn on the fly on a bitmap in memory (double buffering) and if needed is rotated and then assigned to a picturebox. Ofcourse the original form and picturebox are transparent so you can see behind these crosses. The number, color, thickness and lenght of the cross lines are optional.
What i am looking for are two things:
1- To be able to draw a line like what you see in the picture : I think I can do that in one way or another. Anyway your advice is appreciated.
2- This the important part: I want to count the crosses that are bound inside the curved line. If a cross is on the border line that will be counted only if the right upper quadrant is included inside the curve. I am just thinking of someway to do it, but i think that wont be done without your help.
Thanks
Last edited by Lunatic3; Jul 9th, 2003 at 04:22 AM.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
I think i have to have the points that constitute the curve in an array. Then eliminate those that are inbetween the cross centers. Something like the attachment. Then count the crosses that fall between two consecutive points Xwise and Ywise.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979