Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

basic commands

Status
Not open for further replies.

jamesoc

Technical User
Feb 1, 2005
38
IE
what command would i use in order to scan across each line of a picture box until i came to a pixel of a different colour.i am trying to write a program that will store the location of a shape .it will scan across each line storing where ever it commes across a change in pixel colour.
 
The picture box has a point function that returns the color of the pixel. You supply the x and y coordinates to the point function.

Ex.

lngColor = Picture1.Point(20,20)

lngColor will represent the RGB value of the pixel at 20, 20.



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top