rectangle drawn on picturebox gets erased when i scroll image.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 55555
    New Member
    • Dec 2009
    • 9

    #1

    rectangle drawn on picturebox gets erased when i scroll image.

    rectangle drawn on picturebox gets erased when i scroll image.i.e
    i have made application for image cropping. on mouse down and mouse up event, an rectangle is drawn on picturebox using graphics.
    1) now the problem is that when scroll image rectangle drawn on picturebox gets erased.

    2)now i want resize this rectangle as per user's interest
    how to resize the rectangle and drag the rectangle on picture box.


    Awaiting for the answers.

    thank you!!!
  • 55555
    New Member
    • Dec 2009
    • 9

    #2
    rectangle drawn on picturebox gets erased when i scroll image.i.e

    rectangle drawn on picturebox gets erased when i scroll image.i.e
    i have made application for image cropping. on mouse down and mouse up event, an rectangle is drawn on picturebox using graphics.
    1) now the problem is that when scroll image rectangle drawn on picturebox gets erased.

    2)now i want resize this rectangle as per user's interest
    how to resize the rectangle and drag the rectangle on picture box.

    Awaiting for the answers.

    thank you!!!

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      Just hit that submit button once please. Your threads have been merged.

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        1) Redraw the box in the new {scrolled} location
        2) Your box, right now, is most likely nothing more complex than a drawing of 4 lines, right? You'll have to make it a control that is a bit smarter. Give it handles that can be grabbed etc. It will need to become a full-fledged object that you keep track of. Or better still that keeps track of itself; knowing its own size, location etc.

        Comment

        • 55555
          New Member
          • Dec 2009
          • 9

          #5
          Originally posted by RedSon
          Just hit that submit button once please. Your threads have been merged.
          . did not understood?

          Comment

          • 55555
            New Member
            • Dec 2009
            • 9

            #6
            Originally posted by tlhintoq
            1) Redraw the box in the new {scrolled} location
            2) Your box, right now, is most likely nothing more complex than a drawing of 4 lines, right? You'll have to make it a control that is a bit smarter. Give it handles that can be grabbed etc. It will need to become a full-fledged object that you keep track of. Or better still that keeps track of itself; knowing its own size, location etc.
            . did not understood

            Comment

            Working...