Results 1 to 4 of 4

Thread: Need your help and advice on this![Resolved]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    Need your help and advice on this![Resolved]

    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
    Attached Images Attached Images  
    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

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Ok, making some progress.
    '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

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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.
    Attached Images Attached Images  
    '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

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Ok. I finally did it using graphicspath, regions,... and the foolishly named method called IsVisible.
    '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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width