Click here to Skip to main content
15,917,454 members

Comments by Moreno Airoldi (Top 2 by date)

Moreno Airoldi 4-Aug-13 14:36pm View    
My pleasure. :-)
Moreno Airoldi 29-May-10 7:51am View    
Humm ok so you are mathing a pixel from the array with a pixel which is outside the array (a "randomly" chosen color) then ?

In that case the only optimization I can think of is keeping a list of matches, so that if you query the same color again you won't have to go through the whole pixel array. Not much but... hehe :)

You may also prepare an initial matching list using the pixels from the array. How much that would help really depends on how the color/pixel you want to match is picked ofc.