How to get pixel in picturebox??

M

MAY

hi, i m new in C#....... here have the simple question abt GDI+

i draw some lines and rectangle into a picturebox by using pen and brush.

By what way, i can check a particular of pixel on this picturebox is drawed
or not??

Beside, how to convert these lines or rectangle shapes into objects so i can
undo the drawing??

Thanks !!!!!!
 
E

Erik Frey

MAY said:
hi, i m new in C#....... here have the simple question abt GDI+

i draw some lines and rectangle into a picturebox by using pen and brush.

By what way, i can check a particular of pixel on this picturebox is drawed
or not??

Beside, how to convert these lines or rectangle shapes into objects so i can
undo the drawing??

Thanks !!!!!!

http://www.bobpowell.net/hittestlines.htm

That should get you started.

Erik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top