## DAPath2 Class

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.

- DAPath2 Functions
- Relevant Functions from the DAStatics Class

### DAPath2 Functions

BoundingBox

Close

Draw

Fill

Transform

####

BoundingBox

DAPath2 Class

Creates a DAPath2 object that is a visible bounding box.

path2Obj.BoundingBox(
style
)

##### Parameters

style
  A DALineStyle object. This argument is ignored. The line style is always the default line style and has a width of 0.

##### Return Values

Returns the DAPath2 object.

####

Close

DAPath2 Class

Adds a line segment from the end of the path to the start. This function is useful for animating closed regions.

path2Obj.Close

##### Return Values

Returns the DAPath2 object.

####

Draw

DAPath2 Class

Renders the DAPath2 object into a DAImage object. The image is unfilled, which means only the outline is rendered.

path2Obj.Draw(
ls
)

##### Parameters

ls
  The DALineStyle used to render the image.

##### Return Values

Returns the DAImage object.

####

Fill

DAPath2 Class

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
)

##### Parameters

ls
  The DALineStyle object used to draw the path.
im
  The DAImage object used as the fill pattern.

##### Return Values

Returns the DAImage object.

####

Transform

DAPath2 Class

Creates a new Path2 object that is the result of applying the given transformation to the points in the original path.

path2Obj.Transform(
xf
)

##### Parameters

a
  The DATransform2 object representing the transformation to apply to the original path.

##### Return Values

Returns the DAPath2 object.

##### Remarks

This function composes values. The resulting transformation is the new value applied to the old value.

### Relevant Functions from the DAStatics Class

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.Concat(p1, p2)

lib.ConcatArray(paths)

lib.CubicBSplinePath(points, knots)

lib.Line(p1, p2)

lib.OvalAnim(width, height)

lib.Oval(width, height)

lib.PieDegrees(startAngle, endAngle, arcWidth, arcHeight)

lib.PieRadiansAnim(startAngle, endAngle, arcWidth, arcHeight)

lib.PieRadians(startAngle, endAngle, arcWidth, arcHeight)

lib.PolyDrawPath(points, codes)

lib.Polyline(points)

lib.Ray(p)

lib.RectAnim(width, height)

lib.Rect(width, height)

lib.RoundRectAnim(width, height, arcWidth, arcHeight)

lib.RoundRect(width, height, arcWidth, arcHeight)

lib.StringPathAnim(string, fs)

lib.StringPath(string, fs)

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.