To remove the last point from the contour in a frame called MyFrame:
MyFrame.RemovePoint();
To draw a line and then insert a point into the middle of that line:
// Draw a line
MyFrame.DrawLine( 100, 100, 100, 300 );
// Insert a point after the first
MyFrame.AddPoint( 200, 200, 0 );
// remove it again, leaving a single line
MyFrame.RemovePoint( 1 );