-
1 Attachment(s)
Find white pixel
Hi, I have an image which is a red background, with a white box on top.
I need to know the coordinates of that most top left white pixel.
My idea is to use a screen grabber - the one in the link below,
http://www.vbforums.com/showthread.php?t=411508
And the picture comparer attached, modify them both slightly, so that i can grab an area that i know covers the white pixel, then use the pic comparer to find the white pixel, and when it does, tell me in a text box the x an y coordinates of it.
If anyone thinks they have a moment to try and do this ( or something similar - i can see the pic comparer not being the right method) I would be very grateful, and big rate points coming...
Thanks
Very much
Alex
-
Re: Find white pixel
We dont all come to the forums to write programs for other people (or merge two programs), we come here to help people who have specific problems getting a particular piece of code to work.
If you make an attempt to do the work yourself, we'll help when you get stuck - but if you want someone to do the work for you, you will be better off going to a site where you can hire programmers to do it.
-
Re: Find white pixel
Novice, if you only need one pixel all you need to do is scan the image until you find the one that is white...simple enough...start at top left and scan downwards, moving to next column if you don't find it (it's less pixels down than across usually...if you KNOW the pixel will be at the top part of the picture then scan left to right)
I think bitblt (or whatever it's called) is what you're after...I don't use it myself as I rarely need to work with images these days, but someone will help you with it if you ask nicely and don't expect them to do all the work for you :-)
-
Re: Find white pixel
Is this the way to do it though. Or is there an easier way. How do i get it to notice that the pixel is white...