Pergunta

I have an asp.net page which displays different colors..It looks something like this.

enter image description here

Now what i want is,when i click on any where in that form,i want to get the pixel color of that particular point. How can i do that??

Foi útil?

Solução

I'd use jquery and put a click event on each of the area's. I'd put the colour into the id of each of the areas, something like id="colour-#d9d9d9".

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top