Here are some good example of rounded shape visit following URL you will find your answer and code for that answer.
Visit: http://www.codeproject.com/Articles/...rners-polygon#