void ExportVideoMotionVertex(XmlElement parent, VideoMotionVertex vertex, String location) { XmlElement elt = AddChild(parent, location); elt.SetAttribute("X", vertex.X.ToString(myNumberFormat)); elt.SetAttribute("Y", vertex.Y.ToString(myNumberFormat)); }
VideoMotionBounds ChildVideoMotionBounds(XmlElement parent, String boundsName) { XmlElement elt = parent[boundsName]; VideoMotionVertex topLeft = ChildVideoMotionVertex(elt, "TopLeft"); VideoMotionVertex topRight = ChildVideoMotionVertex(elt, "TopRight"); VideoMotionVertex bottomRight = ChildVideoMotionVertex(elt, "BottomRight"); VideoMotionVertex bottomLeft = ChildVideoMotionVertex(elt, "BottomLeft"); return(new VideoMotionBounds(topLeft, topRight, bottomRight, bottomLeft)); }