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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternative to GetPixel?

Status
Not open for further replies.

Dreadson

Instructor
Jun 11, 2003
63
US
I'm making a program that can find a certain color of pixel in an image. I have two "for" loops, for rows and columns, and I use GetPixel to get the pixel color. However, on large images this can be quite slow. Is there any better way?
 
Well you could try using GetDIBits to read the whole image in one go into an array of your choice, then your for loops only have to iterate over the array.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top