How to draw a polygon

Hi all,

I want to draw a polygon by using lineTo command but how could a use it ??
Please help me out.

-soha:stunned: