Accusoft PrintPRO 8
DrawCurve Method
Single-precision floating-point value indicating the x coordinate for the start of the Bezier curve.
Single-precision floating-point value indicating the y coordinate for the start of the Bezier curve.
Single-precision floating-point value indicating the x coordinate for the midpoint of the Bezier curve.
Single-precision floating-point values indicating the y coordinate for the midpoint of the Bezier curve.
Single-precision floating-point values indicating the x coordinate of the curve point that determines the curvature of the Bezier curve.
Single-precision floating-point values indicating the y coordinate for the curve point that determines the curvature of the Bezier curve.
Single-precision floating-point value indicating the x coordinate for the end point of the Bezier curve.
Single-precision floating-point value indicating the y coordinate for the end point of the Bezier curve.
A long value representing the pen color.
Description

Creates a Bezier curve on a document to be printed.

Syntax
Visual Basic
Public Sub DrawCurve( _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single, _
   ByVal X3 As Single, _
   ByVal Y3 As Single, _
   ByVal X4 As Single, _
   ByVal Y4 As Single, _
   ByVal penColor As OLE_COLOR _
) 
Parameters
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.
Remarks

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.

See Also

PrintPro Object  | PrintPro Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback