Jump to content

How do I erase lines in C#?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
qu20

qu20

    Newbie

  • Members
  • Pip
  • 3 posts
Hello, I am working on developing an application using graphics. I' ve got a following problem. It is known, how to draw a line using Pen, Brush and so on. But is there any opportunities to erase what you've drawn? For example, I want to draw a line and then erase it or make it invisible

#2
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
To erase a line just redraw it in the same color as the rest of the background. But I don't see the purpose of drawing a line then turning right around and erasing it, unless you want to redraw it some other place for some visual affect???
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.

#3
qu20

qu20

    Newbie

  • Members
  • Pip
  • 3 posts
Yes, I wanted to redraw a line on some other place having erased the previous one

#4
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
your answer is at Msdn Advanced Gdi++ using C# , please do a search at msdn :)

#5
qu20

qu20

    Newbie

  • Members
  • Pip
  • 3 posts
Thanks