Reading a graphic

  • Thread starter Thread starter Bob Hollness
  • Start date Start date
B

Bob Hollness

Hi all, I have a problem that has me well and truly stumped, so I am hoping
that somebody here might be able to help!

I have a bitmap image on my form. It is black and white and has several
horizontal lines across the page. What I want to do is somehow read the
left and top position of each horizontal line so that I can then draw more
lines on top of this image.

Does anybody have any idea if this is even possible? Tips are more than
welcome!
 
Hi,

Use the bitmap classes getpixel method to find the lines.

http://msdn.microsoft.com/library/d...rlrfsystemdrawingbitmapclassgetpixeltopic.asp

Create a graphics object to draw on the bitmap. Graphics.FromImage
http://msdn.microsoft.com/library/d...fsystemdrawinggraphicsclassfromimagetopic.asp


Ken
----------------
Hi all, I have a problem that has me well and truly stumped, so I am hoping
that somebody here might be able to help!

I have a bitmap image on my form. It is black and white and has several
horizontal lines across the page. What I want to do is somehow read the
left and top position of each horizontal line so that I can then draw more
lines on top of this image.

Does anybody have any idea if this is even possible? Tips are more than
welcome!
 

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

Similar Threads


Back
Top