Creates a DAPath2 object that represents a path in two-dimensional space. A DAPath2 object consists of a sequence of two-dimensional points (potentially animated) and is typically used to draw images consisting of line segments or to define borders for geometric shapes.
This class inherits from the DABehavior class.
Creates a DAPath2 object that is a visible bounding box.
path2Obj.BoundingBox(
style
)
Returns the DAPath2 object.
Adds a line segment from the end of the path to the start. This function is useful for animating closed regions.
path2Obj.Close
Returns the DAPath2 object.
Renders the DAPath2 object into a DAImage object. The image is unfilled, which means only the outline is rendered.
path2Obj.Draw(
ls
)
Returns the DAImage object.
Renders the DAPath2 object into a DAImage object. The im parameter specifies the image used to fill in the new DAImage object. The ls argument specifies the DALineStyle that is used to draw the outline.
path2Obj.Fill(
ls,
im
)
Returns the DAImage object.
Creates a new Path2 object that is the result of applying the given transformation to the points in the original path.
path2Obj.Transform(
xf
)
Returns the DAPath2 object.
This function composes values. The resulting transformation is the new value applied to the old value.
The following functions are defined in the DAStatics class and are most relevant for objects of type DAPath2.
lib.ArcDegrees(startAngle, endAngle, arcWidth, arcHeight)
lib.ArcRadiansAnim(startAngle, endAngle, arcWidth, arcHeight)
lib.ArcRadians(startAngle, endAngle, arcWidth, arcHeight)
lib.CubicBSplinePath(points, knots)
lib.PieDegrees(startAngle, endAngle, arcWidth, arcHeight)
lib.PieRadiansAnim(startAngle, endAngle, arcWidth, arcHeight)
lib.PieRadians(startAngle, endAngle, arcWidth, arcHeight)
lib.PolyDrawPath(points, codes)
lib.RoundRectAnim(width, height, arcWidth, arcHeight)
lib.RoundRect(width, height, arcWidth, arcHeight)
lib.StringPathAnim(string, fs)
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.