Index Topic Contents | |||
Previous Topic: DAJoinStyle Class Next Topic: DAMatte Class |
DALineStyle Class
Creates a DALineStyle object that represents a (potentially) animated line style. The object defines the various line styles to use when drawing lines. These styles includes the shape of the end of a line, the shape of joints between intersecting lines, the width of the line, and whether the line is drawn with a continuous stroke or as a sequence of dashes.
Use DALineStyle objects with the Draw function in the DAPath2 class.
This class inherits from DABehavior.
DALineStyle Functions
DALineStyle Class
AntiAliasingDetermines whether or not the line will be antialiased. If antialias is 0 (the default), there is no antialiasing. If it is 1, there is antialiasing.
linestyleObj.AntiAliasing(
antialias
)Parameters
- antialias
- A double that can be either 0 or 1.
Return Values
Returns the DALineStyle object.
DALineStyle Class
ColorDetermines the color of a DALineStyle object. The default color is Black.
linestyleObj.Color(
color
)Parameters
- color
- The DAColor object that sets the color of the line. The default color is Black.
Return Values
Returns the DALineStyle object.
DALineStyle Class
DashCreates a DALineStyle object that is the result of applying the given DADashStyle object to the existing line style. By default, the dash style is solid.
linestyleObj.Dash(
ds
)Parameters
- ds
- The DADashStyle object that represents the dash style to apply.
Return Values
Returns the DALineStyle object.
DALineStyle Class
DetailCreates a detail DALineStyle object from an existing line style. A detail line style is not changed by image scaling operations. The detail line style is the default line style, and it has no width.
linestyleObj.Detail
Return Values
Returns the DALineStyle object.
DALineStyle Class
EndCreates a DALineStyle object that is the result of applying the given end style, es, to the existing line style. By default, the end style is flat.
linestyleObj.End(
es
)Parameters
- es
- The DAEndStyle object that represents the end style behavior to apply.
Return Values
Returns the DALineStyle object.
DALineStyle Class
JoinCreates a DALineStyle object that is the result of applying the given DAJoinStyle object to the existing line style. By default, the join style is beveled.
linestyleObj.join(
js
)Parameters
- js
- The DAJoinStyle object that represents the join style to apply.
Return Values
Returns the DALineStyle object.
DALineStyle Class
WidthAnimCreates a DANumber object from an existing line style by setting the width of line to the given amount, expressed in points. If the width results in a line less than a single pixel, the line is always drawn as a detail line.
linestyleObj.WidthAnim(
width
)Parameters
- width
- The DANumber object that represents the width of the line. This must be an animated number.
Return Values
Returns the DALineStyle object.
Remarks
This overrides Detail.
DALineStyle Class
WidthSame as WidthAnim except that width is a non-animated number (a double).
linestyleObj.Width(
width
)Relevant Properties from the DAStatics Class
The following properties are defined in the DAStatics class and are most relevant to objects of type DALineStyle.
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.