Added the ToPointArray() method for easy use with path drawing