Creates a DAPath2 object representing a segment of an oval (In effect, this is an arc). The oval is centered at the origin.
lib.ArcDegrees(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Returns the DAPath2 object.
Creates a DAPath2 object representing a segment of an oval (In effect, this is an arc). The oval is centered at the origin.
lib.ArcRadiansAnim(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Returns the DAPath2 object.
If the PixelLibrary is selected, remember that positive y is down.
Same as ArcRadiansAnim except that the arguments are non-animated numbers (doubles).
lib.ArcRadians(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Creates a DAPath2 object that represents the concatenation of the given paths. In the new path, the points of p1 occur first, followed by those of p2. Path p2 is transformed so that the first point of p2 aligns with the last point of p1.
lib.Concat(
p1,
p2
)
Returns the DAPath2object.
Creates a DAPath2 object that represents the concatenation of the DAPath2 objects in the array. In the new path, the points of the first path in the array occur first, followed sequentially by the other paths in the array. The second path, for example, is transformed so that its first point aligns with the last point of the first path.
lib.ConcatArray(
paths
)
Returns the DAPath2object.
Creates a DAPath2 object based on a cubic B-spline curve. The curve depends on the control points and the knot vector, and requires that:
The control points define the approximate direction and shape of the function. The knots represent the junction values, in parameter space, between the connected polynomial parts. For a number of knots k, the function is valid in the range [3, knotk-2], and is otherwise undefined.
lib.CubicBSplinePath(
points,
knots
)
Returns the DAPath2 object.
Creates a DAPath2object that represents the line segment defined by the given points.
lib.Line(
p1,
p2
)
Returns the DAPath2object.
Creates a DAPath2 object that represents an oval, centered about the origin, and whose width and height are described by the given DANumber arguments.
lib.OvalAnim(
width,
height
)
Returns the DAPath2 object.
The units can either be meters or pixels, depending on whether the MeterLibrary or the PixelLibrary is selected. If the PixelLibrary is selected, remember that positive-y is down.
Same as OvalAnim except that the arguments are non-animated numbers (doubles).
lib.Oval(
width,
height
)
Creates a DAPath2 object representing a closed path that traces a segment of an oval and connects it to the origin. (In effect, it is a pie-shaped wedge). The oval is centered at the origin.
lib.PieDegrees(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Returns the DAPath2 object.
Creates a DAPath2 object representing a closed path that traces a segment of an oval and connects it to the origin. (In effect, it is a pie-shaped wedge). The oval is centered at the origin.
lib.PieRadiansAnim(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Returns the DAPath2 object.
Same as PieRadiansAnim except that the arguments are non-animated numbers (doubles).
lib.PieRadians(
startAngle,
endAngle,
arcWidth,
arcHeight
)
Creates a DAPath2 object by manipulating the array of points with the codes contained in the DANumber array. The codes represent the instructions that can be OR'd together, where:
Code | Name | Meaning |
01 | PT_CLOSEFIGURE | Connects points to create a closed figure. |
02 | PT_LINETO | Connects points in a line. |
04 | PT_BEZIERTO | Connects points in a Bezier curve. These must occur in multiples of 3. |
06 | PT_MOVETO | Moves to a point. This is, implicitly, always the first instruction. |
lib.PolyDrawPath(
points,
codes
)
Returns the DAPath2 object.
This function is the equivalent of the Graphics Drawing Interface (GDI) PolyDraw function.
Creates a DAPath2 object that consists of the given (animated) points. The path can be used either for drawing or animation. The default line style is the defaultLineStyle.
lib.Polyline(
points
)
Returns the DAPath2 object.
Creates a DAPath2object that represents the line segment from the origin to the given (animated) point.
lib.Ray(
p
)
Returns the DAPath2object.
Creates the DAPath2 object representing a rectangle, centered at the origin.
lib.RectAnim(
width,
height
)
Returns the DAPath2 object.
If the PixelLibrary is selected, remember that positive-y is down.
Same as RectAnim except that the arguments are non-animated numbers (doubles).
lib.Rect(
width,
height
)
Creates a DAPath2 object that is a rectangle, centered about the origin, with rounded, rather than square, corners. The corners are considered to be segments of an oval (in effect, an arc), centered at the origin.
lib.RoundRectAnim(
width,
height,
arcWidth,
arcHeight
)
Returns the DAPath2 object.
The units can either be meters or pixels, depending on whether the MeterLibrary or the PixelLibrary is selected. If the PixelLibrary is selected, remember that positive-y is down.
Same as RoundRectAnim except that the arguments are non-animated numbers (doubles).
lib.RoundRect(
width,
height,
arcWidth,
arcHeight
)
Same as StringPathAnim except that string is non-animated.
lib.StringPath(
string,
fs
)
Creates a DAPath2 object from the supplied DAString object. The appearance is specified by the DAFontStyle object. The path behavior is useful for creating a matte to which an image behavior can be clipped.
lib.StringPathAnim(
string,
fs
)
Returns the DAPath2 object.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.