Creates a Bezier curve on a document to be printed.
- X1
- Single-precision floating-point value indicating the x coordinate for the start of the Bezier curve.
- Y1
- Single-precision floating-point value indicating the y coordinate for the start of the Bezier curve.
- X2
- Single-precision floating-point value indicating the x coordinate for the midpoint of the Bezier curve.
- Y2
- Single-precision floating-point values indicating the y coordinate for the midpoint of the Bezier curve.
- X3
- Single-precision floating-point values indicating the x coordinate of the curve point that determines the curvature of the Bezier curve.
- Y3
- Single-precision floating-point values indicating the y coordinate for the curve point that determines the curvature of the Bezier curve.
- X4
- Single-precision floating-point value indicating the x coordinate for the end point of the Bezier curve.
- Y4
- Single-precision floating-point value indicating the y coordinate for the end point of the Bezier curve.
- penColor
- A long value representing the pen color.
The coordinates of the curve, with the exception of x3 and y3, must be within the physical area of the printed page.
The width of the line used to draw the curve depends on the setting of the DrawWidth property.
The way the curve is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.
If a printer has not been selected or a document has not been started, the DrawCurve method will select the default printer and start a new document.
You can omit an argument in the middle of the syntax, but you must include the argument’s comma before including the next argument. If you omit an optional argument, omit the comma following the last argument you specify.
When DrawCurve executes, the CurrentX and CurrentY properties are set to the end point specified by the x4 and y4 arguments.