Thanks for your suggestion. But that is not possible as the selection created by user can be of any shape as the user will be allowed to use Lasso for making selection.
Is it possible to get an array of all the locations/points of a selection?
If this is possible then I can draw a line by adding required amount of pixels!