Accusoft PrintPRO 8
DrawArc Method
Single-precision floating-point value indicating the upper-left x coordinate for the bounding rectangle.
Single-precision floating-point value indicating the upper-left y coordinate for the bounding rectangle
Single-precision floating-point values indicating the lower-right x coordinate for the bounding rectangle
Single-precision floating-point values indicating the lower-right y coordinate for the bounding rectangle
Single-precision floating-point value (in degrees, 0-360) that specifies the starting angle of the arc.
Single-precision floating-point value (in degrees, 0-360) that specifies the end angle of the arc.
Long integer value indicating the RGB color of the arc. You can use the RGB function or QBColor function to specify the color.
Description

Creates an arc on a document to be printed.

Syntax
Visual Basic
Public Sub DrawArc( _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single, _
   ByVal StartAngle As Single, _
   ByVal EndAngle As Single, _
   ByVal penColor As OLE_COLOR _
) 
Parameters
X1
Single-precision floating-point value indicating the upper-left x coordinate for the bounding rectangle.
Y1
Single-precision floating-point value indicating the upper-left y coordinate for the bounding rectangle
X2
Single-precision floating-point values indicating the lower-right x coordinate for the bounding rectangle
Y2
Single-precision floating-point values indicating the lower-right y coordinate for the bounding rectangle
StartAngle
Single-precision floating-point value (in degrees, 0-360) that specifies the starting angle of the arc.
EndAngle
Single-precision floating-point value (in degrees, 0-360) that specifies the end angle of the arc.
penColor
Long integer value indicating the RGB color of the arc. You can use the RGB function or QBColor function to specify the color.
Remarks

Draws an elliptical arc.

The center of the arc is the center of the bounding rectangle specified by x1, y1, x2 and y2.

The bounding rectangle must be within the physical area of the printed page.

The starting and end points of the arc are determined by the StartAngle and EndAngle values. The arc is drawn in a counterclockwise direction.

The width of the line used to draw the arc depends on the setting of the DrawWidth property.

The way the arc 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 DrawArc 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 DrawArc executes, the CurrentX and CurrentY properties are set to X2 and Y2.

See Also

PrintPro Object  | PrintPro Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback