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.
For relevant functions from the DAStatics class, see DAStatic Functions Relevant to DAPath2 Objects.
DAPath2 Functions
BoundingBox Creates a DAPath2 object that is a visible bounding box. Close Adds a line segment from the end of the path to the start. Draw Renders the DAPath2 object into a DAImage object. The image is unfilled, which means only the outline is rendered. Fill Renders the DAPath2 object into a DAImage object. The im parameter specifies the image used to fill in the new DAImage object. Transform Creates a new Path2 object that is the result of applying the given transformation to the points in the original path.
Creates a DAPath2 object that is a visible bounding box.
Syntax
path2Obj.BoundingBox( style )
Parameters
- style
- DALineStyle object. This argument is ignored. The line style is always the default line style and has a width of 0.
Return Value
Returns the DABbox object.
Adds a line segment from the end of the path to the start. This function is useful for animating closed regions.
Syntax
path2Obj.Close
Return Value
Returns the DAPath2 object.
Renders the DAPath2 object into a DAImage object. The image is unfilled, which means only the outline is rendered.
Syntax
path2Obj.Draw( ls )
Parameters
- ls
- DALineStyle used to render the image.
Return Value
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.
Syntax
path2Obj.Fill( ls, im )
Parameters
- ls
- DALineStyle object used to draw the path.
- im
- DAImage object used as the fill pattern.
Return Value
Returns the DAImage object.
Creates a new DAPath2 object that is the result of applying the given transformation to the points in the original path.
Syntax
path2Obj.Transform( xf )
Parameters
- xf
- DATransform2 object representing the transformation to apply to the original path.
Return Value
Returns the DAPath2 object.
Remarks
This function composes values. The resulting transformation is the new value applied to the old value.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.