How to clear the image......

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumuka
    New Member
    • Oct 2007
    • 38

    How to clear the image......

    Hello,

    I have a rectancle drawn on buffered image .This is a rubber rectangle which is drawn by dragging the mouse now after releasing the mouse button there remains a dashed lines within the rectangle i need to clear all those and retain only the outer boundary. So is there any method to do it ? I have no idea how to do it?

    Thanks in advance,
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by sumuka
    Hello,

    I have a rectancle drawn on buffered image .This is a rubber rectangle which is drawn by dragging the mouse now after releasing the mouse button there remains a dashed lines within the rectangle i need to clear all those and retain only the outer boundary. So is there any method to do it ? I have no idea how to do it?

    Thanks in advance,
    For 'rubber banding' the Graphics object you use to paint has a special 'xor mode'.
    Check its API documentation.

    kind regards,

    Jos

    Comment

    • sumuka
      New Member
      • Oct 2007
      • 38

      #3
      Originally posted by JosAH
      For 'rubber banding' the Graphics object you use to paint has a special 'xor mode'.
      Check its API documentation.

      kind regards,

      Jos

      Thanks for replying .
      I tried it the XOR will reverse the color in the place where one image is drawn on another but i need to clear the inner part . After drawing im getting those dashed lines within the boundary of rectangle. I need only the outer boundary of rectangle. Please suggest me something.


      Thanks in advance,

      Comment

      Working...