Drawing line around the object

Can we draw a out line of an  image  of any shape with generic code?

Like out line for circle , cloud , or any other shapes.

~Sudheer

In graphics2.0

Try this code:

http://developer.coronalabs.com/code/draw-line

In graphics2.0

Try this code:

http://developer.coronalabs.com/code/draw-line