05-12-2015, 08:57 AM
Do you want to find multiple colors, like this algorithm?
Get all pixels (bitmap) ;;this is the slowest part
If find(color1 in bitmap) ;;fast
,...
else if find(color2 in bitmap) ;;fast
,...
else if find(color3 in bitmap) ;;fast
,...
...
Get all pixels (bitmap) ;;this is the slowest part
If find(color1 in bitmap) ;;fast
,...
else if find(color2 in bitmap) ;;fast
,...
else if find(color3 in bitmap) ;;fast
,...
...