Android Question convert custom shape to DrawPath points.

If you have an irregular shape (bitmap,svg etc) and want to draw it with DrawPath, what tool do you use to convert that shape to DrawPath coordinates?