New usage for the particle に


I was talking to my friend, and she said

> きれいにとれた！

What does `に` after an adjective mean, or what does `に` before a verb mean?  
And where can I read more about this?

Thank you




In this case, doesn't に just make きれい (a な adjective) an adverb?

> きれいにとれた  
>  You were able to take it beautifully.




In this case, doesn't に just make きれい (a な adjective) an adverb?

> きれいにとれた  
>  You were able to take it beautifully.

